/* ==========================================================================
   multipledger.com — Stylesheet
   Aesthetic: watercolor / art-deco-display / stacked-sections / navy-metallic
   ========================================================================== */

:root {
    --c-navy:        #1a2847;
    --c-navy-soft:   #2d3e5f;
    --c-navy-mid:    #3d5a7a;
    --c-slate:       #5a6b7d;
    --c-gold:        #c9a876;
    --c-copper:      #8b6f47;
    --c-cream:       #f5f3f0;
    --c-cream-warm:  #efeae3;
    --c-spring-green:#a3b89a;
    --c-spring-rose: #d4a4a4;

    --font-display:  "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --font-secondary:"Cormorant Garamond", "Playfair Display", Georgia, serif;
    --font-body:     "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono:     "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-cream);
    color: var(--c-navy-soft);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

p { margin: 0 0 1.2em; }

/* paper-grain overlay sits above background, beneath content */
.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(201,168,118,0.05) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(26,40,71,0.04)  0, transparent 40%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.30 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: auto, auto, 180px 180px;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    padding: 140px 8vw 160px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .section { padding: 96px 6vw 110px; }
}

/* eyebrow numerals in the art-deco register */
.section-eyebrow {
    display: inline-flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 56px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-slate);
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.section-eyebrow--light {
    color: rgba(245, 243, 240, 0.78);
}

.eyebrow-numeral {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--c-gold);
    letter-spacing: 0.06em;
}

.section-eyebrow--light .eyebrow-numeral {
    color: var(--c-gold);
}

.section-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    color: var(--c-navy);
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin: 0 0 0.45em;
}

.section-lede {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    color: var(--c-copper);
    max-width: 36em;
    margin: 0 0 90px;
}

/* --------------------------------------------------------------------------
   SECTION I — CLARITY
   -------------------------------------------------------------------------- */
.section-clarity {
    background: var(--c-cream);
    min-height: 100vh;
    padding-top: 18vh;
    padding-bottom: 12vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watercolor-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-blob {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.clarity-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    text-align: center;
    width: 100%;
}

.display-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--c-navy);
    font-size: clamp(2.6rem, 8vw, 6.4rem);
    letter-spacing: 0.08em;
    line-height: 1.05;
    margin: 0 0 32px;
    text-shadow: 0 2px 0 rgba(201,168,118,0.10);
}

.clarity-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 0 auto 48px;
    width: min(440px, 80%);
}

.rule-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold) 40%, var(--c-gold) 60%, transparent);
    opacity: 0.65;
}

.rule-bloom {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c-gold) 35%, rgba(201,168,118,0.0) 75%);
    box-shadow: 0 0 14px rgba(201,168,118,0.55);
}

.display-subtitle {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 500;
    color: var(--c-gold);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.02em;
    margin: 0 0 24px;
}

.meta-line {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.34em;
    color: var(--c-slate);
    text-transform: uppercase;
    margin-bottom: 64px;
}

.ledger-blob {
    width: min(720px, 90%);
    height: auto;
    margin: 0 auto 40px;
}

.breathing { transform-origin: center; animation: breathe 9s ease-in-out infinite; }
.breathing--delay { animation-delay: -3s; }

@keyframes breathe {
    0%, 100% { transform: scale(1.00) translateY(0); }
    50%      { transform: scale(1.03) translateY(-4px); }
}

.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--c-slate);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    opacity: 0.78;
}

.scroll-cue__line {
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, var(--c-gold) 0%, transparent 100%);
    animation: scroll-pulse 2.6s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%   { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
    50%  { transform: scaleY(1);   opacity: 1; }
    100% { transform: scaleY(0.4); transform-origin: bottom; opacity: 0.4; }
}

/* --------------------------------------------------------------------------
   SECTION II — PHILOSOPHY
   -------------------------------------------------------------------------- */
.section-philosophy {
    background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-cream-warm) 100%);
    padding-top: 0;
}

.wave-divider {
    position: relative;
    margin: 0 -8vw 80px;
    pointer-events: none;
}

.wave-divider svg {
    width: 100%;
    height: 120px;
    display: block;
}

.philosophy-block {
    position: relative;
    max-width: 760px;
    margin: 0 auto 96px;
    padding: 36px 56px;
}

.philosophy-block--alt {
    margin-left: auto;
    margin-right: 6vw;
    text-align: right;
}

@media (min-width: 1100px) {
    .philosophy-block        { margin-left: 6vw; }
    .philosophy-block--alt   { margin-left: auto; margin-right: 6vw; }
}

.block-heading {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-navy);
    font-size: clamp(1.9rem, 3.6vw, 3.0rem);
    letter-spacing: 0.05em;
    line-height: 1.15;
    margin: 0 0 24px;
}

.body-prose {
    font-family: var(--font-body);
    color: var(--c-navy-soft);
    font-size: 1.0625rem;
    line-height: 1.8;
    letter-spacing: 0.012em;
    max-width: 36em;
}

.philosophy-block--alt .body-prose,
.philosophy-block--alt .block-heading {
    margin-left: auto;
}

.bloom-margin {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,118,0.55) 0%, rgba(201,168,118,0) 70%);
    pointer-events: none;
}

.bloom-margin--left  { top: 8px;  left: -28px; }
.bloom-margin--right { bottom: 8px; right: -28px; }

.trust-wave {
    margin: -40px -8vw 0;
    height: 80px;
    overflow: hidden;
    opacity: 0.78;
}

.trust-wave svg { width: 100%; height: 80px; }

.pull-quote {
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(201,168,118,0.40);
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    color: var(--c-navy);
    line-height: 1.5;
    letter-spacing: 0.01em;
    position: relative;
}

.philosophy-block--alt .pull-quote {
    text-align: right;
    margin-left: auto;
    max-width: 32em;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 2.4em;
    color: var(--c-gold);
    line-height: 0;
    margin-right: 8px;
    vertical-align: -0.2em;
}

.quote-attrib {
    display: block;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--c-slate);
    margin-top: 18px;
}

.decimal-bloom-cluster {
    position: relative;
    height: 80px;
    margin-top: 32px;
}

.bloom-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c-gold) 0%, rgba(201,168,118,0) 70%);
    opacity: 0.85;
    animation: bloom-drift 7s ease-in-out infinite;
}

.bloom-dot--1 { top: 10px;  left: 14%; animation-delay: 0s;    }
.bloom-dot--2 { top: 38px;  left: 50%; animation-delay: -2s;   width: 22px; height: 22px; }
.bloom-dot--3 { top: 18px;  left: 82%; animation-delay: -4s;   width: 12px; height: 12px; }

@keyframes bloom-drift {
    0%, 100% { transform: translateY(0)    scale(1); opacity: 0.55; }
    50%      { transform: translateY(-10px) scale(1.15); opacity: 0.95; }
}

/* --------------------------------------------------------------------------
   SECTION III — THE PRACTICE
   -------------------------------------------------------------------------- */
.section-practice {
    background: var(--c-cream-warm);
    padding-top: 120px;
    padding-bottom: 160px;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 120px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 880px) {
    .practice-grid { grid-template-columns: 1fr; gap: 80px; }
}

.practice-block {
    position: relative;
    padding: 60px 50px;
    isolation: isolate;
}

.practice-blob {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scale(1.05);
    transition: transform 0.8s ease-out;
}

.practice-block:hover .practice-blob {
    transform: scale(1.10);
}

.practice-meta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.34em;
    color: var(--c-slate);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.practice-heading {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--c-gold);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
}

.practice-body {
    font-family: var(--font-body);
    color: var(--c-navy-soft);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 28em;
    margin: 0;
}

/* --------------------------------------------------------------------------
   SECTION IV — INTEGRATION (ceremonial pivot)
   -------------------------------------------------------------------------- */
.section-integration {
    background: linear-gradient(180deg, var(--c-cream-warm) 0%, var(--c-navy) 90%);
    color: var(--c-cream);
    padding-top: 160px;
    padding-bottom: 200px;
    position: relative;
}

.section-integration .section-eyebrow {
    color: rgba(245, 243, 240, 0.72);
}

.integration-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 940px) {
    .integration-stage { grid-template-columns: 1fr; gap: 50px; }
}

.integration-nodes {
    width: min(420px, 100%);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 40px rgba(201,168,118,0.18));
}

.rotor { transform-origin: 200px 200px; }
.rotor--slow    { animation: spin 32s linear infinite; }
.rotor--reverse { animation: spin 48s linear infinite reverse; }
.node-core      { animation: core-pulse 6s ease-in-out infinite; transform-origin: 200px 200px; }

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

@keyframes core-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.85; }
    50%      { transform: scale(1.10); opacity: 1; }
}

.integration-prose { color: var(--c-cream); }

.integration-heading {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    color: var(--c-cream);
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin: 0 0 28px;
}

.integration-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(245, 243, 240, 0.82);
    max-width: 30em;
    margin-bottom: 1.4em;
}

/* --------------------------------------------------------------------------
   SECTION V — SPRING FORWARD
   -------------------------------------------------------------------------- */
.section-spring {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(163,184,154,0.18), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(212,164,164,0.18), transparent 50%),
        var(--c-cream);
    padding-top: 160px;
    padding-bottom: 180px;
    position: relative;
}

.section-spring .section-eyebrow {
    color: var(--c-slate);
}
.section-spring .section-eyebrow .eyebrow-numeral {
    color: var(--c-copper);
}

.petal-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.petal {
    position: absolute;
    width: 60px;
    height: 80px;
    animation: petal-sway 9s ease-in-out infinite;
    transform-origin: center bottom;
}

.petal--1 { top: 12%; left: 8%;  animation-delay: 0s;    transform: rotate(-22deg); }
.petal--2 { top: 22%; left: 88%; animation-delay: -2s;   transform: rotate(28deg); width: 70px; height: 90px; }
.petal--3 { top: 56%; left: 12%; animation-delay: -4s;   transform: rotate(14deg); width: 50px; height: 70px; }
.petal--4 { top: 70%; left: 78%; animation-delay: -1s;   transform: rotate(-18deg); width: 80px; height: 100px; }
.petal--5 { top: 34%; left: 48%; animation-delay: -3s;   transform: rotate(8deg);   opacity: 0.6; }
.petal--6 { top: 84%; left: 38%; animation-delay: -5s;   transform: rotate(-32deg); width: 64px; height: 84px; }

@keyframes petal-sway {
    0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
    50%      { transform: rotate(calc(var(--rot, 0deg) + 6deg)) translateY(-12px); }
}

.spring-prose {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.spring-heading {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-navy);
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    letter-spacing: 0.04em;
    line-height: 1.18;
    margin: 0 0 36px;
}

.spring-body {
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--c-navy-soft);
    max-width: 32em;
    margin: 0 auto 1.4em;
}

.spring-callout {
    margin-top: 36px;
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--c-copper);
    letter-spacing: 0.10em;
}

/* --------------------------------------------------------------------------
   SECTION VI — STORIES
   -------------------------------------------------------------------------- */
.section-stories {
    background: var(--c-cream-warm);
    padding-top: 140px;
    padding-bottom: 160px;
}

.story-stack {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 920px;
    margin: 0 auto;
}

.story-card {
    position: relative;
    margin: 0;
    padding: 72px 64px;
    isolation: isolate;
    overflow: hidden;
}

.story-card--alt { padding-left: 12vw; }

@media (max-width: 720px) {
    .story-card        { padding: 56px 40px; }
    .story-card--alt   { padding-left: 40px; }
}

.story-blot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.story-quote {
    margin: 0 0 22px;
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1.5;
    color: var(--c-navy);
    letter-spacing: 0.01em;
    max-width: 30em;
}

.story-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.30em;
    color: var(--c-slate);
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   SECTION VII — THE LEDGER ETERNAL
   -------------------------------------------------------------------------- */
.section-eternal {
    background: linear-gradient(180deg, var(--c-cream-warm) 0%, var(--c-navy) 70%);
    color: var(--c-cream);
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
}

.eternal-illustration {
    margin: 60px -8vw 80px;
    overflow: hidden;
}

.eternal-illustration svg {
    width: 100%;
    height: auto;
    transform-origin: center;
    transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.eternal-blob {
    transform-origin: center;
    transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.eternal-heading {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    color: var(--c-cream);
    letter-spacing: 0.06em;
    line-height: 1.2;
    max-width: 22em;
    margin: 0 auto 100px;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: 80px;
    padding: 60px 0 40px;
    color: rgba(245, 243, 240, 0.82);
}

.footer-rule {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--c-gold) 30%, var(--c-gold) 70%, transparent 100%);
    opacity: 0.55;
    filter: blur(0.5px);
    margin-bottom: 36px;
}

.footer-rule--bottom {
    margin: 36px 0 0;
    opacity: 0.32;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 28px 56px;
    font-family: var(--font-mono);
    font-size: 0.80rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(245, 243, 240, 0.70);
}

.footer-mark {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--c-gold);
    text-transform: none;
    letter-spacing: 0.04em;
}

.footer-meta { color: rgba(245, 243, 240, 0.55); }

.footer-contact {
    color: rgba(245, 243, 240, 0.85);
    text-transform: none;
    letter-spacing: 0.06em;
    font-size: 0.86rem;
}

.footer-coda {
    color: rgba(245, 243, 240, 0.50);
    font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
    will-change: opacity, transform;
}

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

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
