/* PPADDL.com — Watercolor Horizontal Narrative
   Pastoral romantic, sumi-e ink wash, magazine-spread panels.
*/

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

:root {
    --paper:        #F7F4F0;  /* Mist White */
    --deep-current: #1A2634;  /* Deep Current */
    --ink:          #2C3E50;  /* Ink Wash */
    --water:        #7BA7BC;  /* Still Water */
    --blush:        #D4A59A;  /* Dawn Blush */
    --moss:         #6B7F5E;  /* Moss Stone */
    --fog:          #C8C3BC;  /* Fog Gray */
    --ease-glide:   cubic-bezier(0.25, 0.1, 0.25, 1);
}

html, body {
    height: 100%;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.75;
    cursor: none;
    position: relative;
}

/* ----- Paper grain overlay ----- */
.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
}

/* ----- Paddle cursor ----- */
.paddle-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-100px, -100px) rotate(0deg);
    transition: transform 80ms linear;
    will-change: transform;
}
.paddle-cursor svg { display: block; }

/* ----- Floating leaves (decorative pool, hero copies them) ----- */
.leaves { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; }
.hero-leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.hero-leaves .leaf {
    position: absolute;
    opacity: 0.22;
    will-change: transform, opacity;
}
@keyframes leafDrift {
    0%   { transform: translate(0, 0) rotate(0deg);   opacity: 0; }
    15%  { opacity: 0.25; }
    50%  { transform: translate(60vw, -10vh) rotate(180deg); opacity: 0.3; }
    85%  { opacity: 0.2; }
    100% { transform: translate(110vw, 5vh) rotate(360deg);  opacity: 0; }
}

/* ----- River container (horizontal scroll) ----- */
.river-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}
.river-container::-webkit-scrollbar { height: 0; display: none; }
.river-container { scrollbar-width: none; }

/* ----- Panels ----- */
.panel {
    flex: 0 0 100vw;
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fog reveal layer */
.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(247, 244, 240, 0.85) 0%, rgba(247, 244, 240, 0.55) 60%, rgba(247, 244, 240, 0.35) 100%);
    opacity: 1;
    transition: opacity 1.2s var(--ease-glide);
    z-index: 5;
}
.panel.in-view::after { opacity: 0; }

/* ----- Watercolor washes ----- */
.watercolor-wash {
    position: absolute;
    inset: -10%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    mix-blend-mode: multiply;
    opacity: 0.85;
    transform: translateX(0);
    will-change: transform;
}

.wash-dark {
    mix-blend-mode: normal;
    filter: blur(90px);
    background:
        radial-gradient(ellipse 60% 50% at 28% 38%, rgba(123, 167, 188, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 72% 62%, rgba(212, 165, 154, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 80% 70% at 50% 50%, rgba(26, 38, 52, 1) 0%, rgba(26, 38, 52, 1) 100%);
}

.wash-warm {
    background:
        radial-gradient(ellipse 50% 45% at 30% 40%, rgba(212, 165, 154, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 45% 55% at 75% 60%, rgba(123, 167, 188, 0.45) 0%, transparent 70%),
        conic-gradient(from 30deg at 50% 50%, rgba(212, 165, 154, 0.2), rgba(247, 244, 240, 0.0), rgba(212, 165, 154, 0.15));
}

.wash-cool {
    background:
        radial-gradient(ellipse 55% 55% at 50% 45%, rgba(123, 167, 188, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 20% 75%, rgba(200, 195, 188, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 30% 35% at 80% 25%, rgba(212, 165, 154, 0.2) 0%, transparent 70%);
}

.wash-green {
    background:
        radial-gradient(ellipse 60% 50% at 60% 40%, rgba(107, 127, 94, 0.65) 0%, transparent 70%),
        radial-gradient(ellipse 45% 55% at 25% 70%, rgba(123, 167, 188, 0.55) 0%, transparent 70%),
        conic-gradient(from 200deg at 70% 50%, rgba(107, 127, 94, 0.15), rgba(247, 244, 240, 0.0), rgba(123, 167, 188, 0.18));
}

.wash-blush {
    background:
        radial-gradient(ellipse 55% 50% at 45% 55%, rgba(212, 165, 154, 0.75) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 75% 25%, rgba(107, 127, 94, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 30% 30% at 20% 30%, rgba(123, 167, 188, 0.3) 0%, transparent 70%);
}

.wash-horizon {
    background:
        linear-gradient(to bottom, rgba(123, 167, 188, 0.55) 0%, transparent 50%),
        linear-gradient(to top, rgba(26, 38, 52, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 55%, rgba(212, 165, 154, 0.45) 0%, transparent 70%);
}

/* ----- Hero panel ----- */
.panel-hero { background: var(--deep-current); color: var(--paper); }

.hero-content {
    text-align: left;
    max-width: 720px;
    padding: 0 8vw;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.5rem, 12vw, 9rem);
    letter-spacing: 0.08em;
    color: var(--paper);
    line-height: 1;
    margin: 16px 0 18px;
    opacity: 0;
    animation: fadeRise 1.4s var(--ease-glide) 0.4s forwards;
}

.hero-sub {
    font-family: 'Source Serif 4', serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);
    color: rgba(247, 244, 240, 0.78);
    letter-spacing: 0.02em;
    font-style: italic;
    max-width: 38ch;
    opacity: 0;
    animation: fadeRise 1.2s var(--ease-glide) 1s forwards;
}

.hero-divider {
    margin: 28px 0 18px;
    opacity: 0;
    animation: fadeRise 1.2s var(--ease-glide) 1.4s forwards;
}

.hero-caption {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--blush);
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeRise 1s var(--ease-glide) 0.2s forwards;
}
.hero-caption-bottom {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: rgba(123, 167, 188, 0.85);
    opacity: 0;
    animation: fadeRise 1s var(--ease-glide) 1.7s forwards;
}

@keyframes fadeRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
    position: absolute;
    bottom: 60px;
    right: 8vw;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--water);
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    z-index: 4;
    opacity: 0;
    animation: fadeRise 1s var(--ease-glide) 2s forwards;
}
.hint-arrow {
    font-size: 1.4rem;
    animation: nudgeRight 2.4s ease-in-out infinite;
    display: inline-block;
}
@keyframes nudgeRight {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(8px); }
}

/* ----- Magazine spread ----- */
.panel-spread {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 8vw;
    gap: 6vw;
    position: relative;
    z-index: 3;
}
.panel-spread.reverse { flex-direction: row; }

.spread-image {
    flex: 1 1 45%;
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
}
.spread-text {
    flex: 1 1 45%;
    max-width: 38ch;
}

.painted-circle {
    width: clamp(220px, 32vw, 460px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    filter: blur(2px);
    position: relative;
    box-shadow: inset 0 0 60px rgba(247, 244, 240, 0.4);
}
.painted-blush {
    background: radial-gradient(circle at 35% 35%, rgba(212, 165, 154, 0.85) 0%, rgba(212, 165, 154, 0.4) 50%, transparent 75%),
                radial-gradient(circle at 70% 70%, rgba(123, 167, 188, 0.4) 0%, transparent 60%);
}
.painted-water {
    background: radial-gradient(circle at 40% 40%, rgba(123, 167, 188, 0.85) 0%, rgba(123, 167, 188, 0.35) 55%, transparent 75%),
                radial-gradient(circle at 75% 65%, rgba(44, 62, 80, 0.3) 0%, transparent 60%);
}
.painted-moss {
    background: radial-gradient(circle at 45% 40%, rgba(107, 127, 94, 0.75) 0%, rgba(107, 127, 94, 0.3) 55%, transparent 75%),
                radial-gradient(circle at 70% 70%, rgba(123, 167, 188, 0.5) 0%, transparent 60%);
}
.painted-soft {
    background: radial-gradient(circle at 40% 45%, rgba(212, 165, 154, 0.7) 0%, rgba(212, 165, 154, 0.25) 55%, transparent 75%),
                radial-gradient(circle at 70% 30%, rgba(200, 195, 188, 0.5) 0%, transparent 60%);
}

.img-caption {
    position: absolute;
    bottom: -10px;
    left: 8%;
    transform: rotate(-2deg);
}

/* ----- Panel headings & prose ----- */
.panel-number {
    display: block;
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--moss);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.panel h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 18px;
}

.panel .prose {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.85;
    color: var(--ink);
    max-width: 38ch;
    margin: 14px 0 18px;
}

.caption {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: var(--moss);
    letter-spacing: 0.01em;
    line-height: 1.4;
}

/* Ink stroke divider */
.ink-stroke {
    margin: 16px 0;
    opacity: 0.65;
}
.ink-stroke svg, .hero-divider svg, .horizon-stroke svg, .progress-bar svg {
    display: block;
    overflow: visible;
}

/* SVG brush path animation */
.brush-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.6s var(--ease-glide);
}
.panel.in-view .brush-path { stroke-dashoffset: 0; }

/* ----- Reflection ripples ----- */
.ripple-circles {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    pointer-events: none;
}
.ripple {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(123, 167, 188, 0.55);
    animation: rippleExpand 4.5s ease-out infinite;
    opacity: 0;
}
.r1 { animation-delay: 0s; }
.r2 { animation-delay: 1.5s; }
.r3 { animation-delay: 3s; }

@keyframes rippleExpand {
    0%   { width: 60px;  height: 60px;  opacity: 0.55; }
    80%  { opacity: 0.05; }
    100% { width: 260px; height: 260px; opacity: 0; }
}

/* ----- Horizon ----- */
.horizon-content {
    text-align: center;
    max-width: 760px;
    padding: 0 8vw;
    position: relative;
    z-index: 3;
}
.horizon-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    color: var(--ink);
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.horizon-sub {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    color: var(--ink);
    opacity: 0.78;
    margin-top: 18px;
}
.horizon-stroke { margin: 28px auto 14px; }
.horizon-caption { color: var(--moss); margin-bottom: 10px; }
.horizon-signoff { color: var(--moss); margin-top: 12px; opacity: 0.85; }

.panel-content.centered { text-align: center; }

/* ----- Progress brushstroke bar ----- */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    pointer-events: none;
    z-index: 50;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
}
.progress-bar svg {
    flex: 1;
    height: 6px;
    width: 100%;
}
#progressPath {
    stroke-dasharray: 1100;
    stroke-dashoffset: 1100;
    transition: stroke-dashoffset 0.4s var(--ease-glide);
}
.progress-label {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--water);
    white-space: nowrap;
    opacity: 0.7;
}

/* ----- Panel dot indicator ----- */
.panel-dots {
    position: fixed;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 60;
    pointer-events: auto;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(200, 195, 188, 0.6);
    transition: background 0.5s var(--ease-glide), transform 0.5s var(--ease-glide), width 0.5s var(--ease-glide);
    cursor: none;
}
.dot.active {
    background: var(--water);
    width: 22px;
    border-radius: 4px;
}
.panel-hero ~ * .dot.active { background: var(--water); }

/* ----- Brush-stroke nav arrows ----- */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    cursor: none;
    color: var(--water);
    transition: opacity 0.6s var(--ease-glide), transform 0.6s var(--ease-glide);
    opacity: 0.55;
}
.nav-arrow:hover { opacity: 1; }
.nav-arrow:disabled { opacity: 0.18; cursor: default; }
.nav-arrow-left  { left: 18px; }
.nav-arrow-right { right: 18px; }
.nav-arrow .arrow-label {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--water);
}

/* ----- Click ripple layer ----- */
.ripple-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
}
.click-ripple {
    position: absolute;
    border: 1px solid var(--water);
    border-radius: 50%;
    width: 8px; height: 8px;
    transform: translate(-50%, -50%) scale(1);
    animation: clickRippleExpand 1.2s var(--ease-glide) forwards;
    opacity: 0.4;
    pointer-events: none;
}
@keyframes clickRippleExpand {
    0%   { transform: translate(-50%, -50%) scale(1);  opacity: 0.45; }
    100% { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

/* ----- Responsive: vertical fallback ----- */
@media (max-width: 768px) {
    body { cursor: auto; }
    .paddle-cursor { display: none; }
    .nav-arrow { display: none; }

    .river-container {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        height: 100vh;
    }
    .panel {
        flex: 0 0 100vh;
        min-width: 100%;
        width: 100%;
        scroll-snap-align: start;
    }
    .panel-spread, .panel-spread.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 60px 24px 80px;
    }
    .spread-image { height: 36vh; min-width: 0; }
    .spread-text  { max-width: 100%; }
    .panel-dots {
        bottom: auto;
        top: 50%;
        right: 14px;
        left: auto;
        transform: translateY(-50%);
        flex-direction: column;
    }
    .dot.active { width: 8px; height: 22px; border-radius: 4px; }
    .scroll-hint { bottom: 24px; right: 24px; }
    .hero-content { padding: 0 24px; }
    .horizon-content { padding: 0 24px; }
    .progress-bar { display: none; }
}
