/* =============================================================
   soning.stream  |  reasoning as a stream
   palette: surface #e8f4f8  shallow #88c4d8  deep #1a4a6a
            abyss   #0a1a2a  biolum  #40e0d0  reflect #c8dce8
   fonts:   Cormorant Garamond / Lato / Noto Serif
   ============================================================= */

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Lato", system-ui, sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: #1a4a6a;
    background: linear-gradient(to bottom,
        #e8f4f8 0%,
        #88c4d8 30%,
        #1a4a6a 70%,
        #0a1a2a 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* fixed soft shimmer overlay across the page */
.depth-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(232, 244, 248, 0.55) 0%, rgba(232, 244, 248, 0) 40%),
                radial-gradient(ellipse at 30% 100%, rgba(64, 224, 208, 0.08) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

/* faint moving caustics */
.caustics {
    position: fixed;
    inset: -10%;
    background:
        radial-gradient(circle at 20% 30%, rgba(200, 220, 232, 0.18) 0%, rgba(0, 0, 0, 0) 12%),
        radial-gradient(circle at 70% 50%, rgba(200, 220, 232, 0.14) 0%, rgba(0, 0, 0, 0) 10%),
        radial-gradient(circle at 40% 80%, rgba(64, 224, 208, 0.10) 0%, rgba(0, 0, 0, 0) 14%),
        radial-gradient(circle at 85% 15%, rgba(232, 244, 248, 0.20) 0%, rgba(0, 0, 0, 0) 9%);
    pointer-events: none;
    z-index: 0;
    animation: drift 28s ease-in-out infinite alternate;
    filter: blur(1px);
}

@keyframes drift {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.85; }
    50%  { transform: translate3d(-2%, 1%, 0) rotate(0.8deg); opacity: 1; }
    100% { transform: translate3d(2%, -1%, 0) rotate(-0.8deg); opacity: 0.9; }
}

/* ---------- main flowing column ---------- */
.stream {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
}

.section {
    position: relative;
    padding: clamp(5rem, 12vw, 10rem) 1.5rem clamp(6rem, 14vw, 12rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
}

.section-surface  { background: transparent; }
.section-shallow  { background: linear-gradient(to bottom, rgba(200,220,232,0.0) 0%, rgba(200,220,232,0.18) 100%); }
.section-midwater { background: linear-gradient(to bottom, rgba(136,196,216,0.10) 0%, rgba(26,74,106,0.18) 100%); }
.section-deep     { background: linear-gradient(to bottom, rgba(26,74,106,0.30) 0%, rgba(10,26,42,0.55) 100%); }
.section-abyss    { background: linear-gradient(to bottom, rgba(10,26,42,0.70) 0%, rgba(10,26,42,0.95) 100%); }

/* surface light beam at the very top */
.surface-light {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%) rotate(8deg);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.45) 0%, rgba(255,255,255,0) 60%);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
    animation: surfaceShine 9s ease-in-out infinite alternate;
}

@keyframes surfaceShine {
    0%   { opacity: 0.6; transform: translateX(-50%) rotate(6deg) scale(1); }
    100% { opacity: 1;   transform: translateX(-50%) rotate(10deg) scale(1.05); }
}

/* ---------- content column ---------- */
.content {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    z-index: 2;
}
.content-narrow { max-width: 560px; }
.content-wide   { max-width: 760px; }

/* gentle bobbing on water */
.floating {
    animation: bob 4s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes bob {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

/* ---------- typography ---------- */
.eyebrow {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #1a4a6a;
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.display {
    font-family: "Cormorant Garamond", "Noto Serif", Georgia, serif;
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: #1a4a6a;
    letter-spacing: -0.01em;
    margin-bottom: 1.75rem;
    position: relative;
}

.display-sm {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.25rem;
}

/* CSS text reflection beneath display headings */
.reflect {
    position: relative;
    display: inline-block;
}
.reflect::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    transform: scaleY(-1);
    transform-origin: top;
    opacity: 0.18;
    filter: blur(1.2px);
    color: #c8dce8;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 75%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 75%);
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
}
.reflect-light {
    color: #c8dce8;
}
.reflect-light::after {
    opacity: 0.22;
    color: #40e0d0;
}

.lede {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.6;
    color: #1a4a6a;
    opacity: 0.92;
    margin: 1.5rem 0 2.5rem;
}

.body {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: #1a4a6a;
    margin-bottom: 1.5rem;
}
.body-light { color: #c8dce8; }

.pull-quote {
    font-family: "Noto Serif", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1a4a6a;
    border-left: 2px solid #40e0d0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    position: relative;
}
.pull-quote-light {
    color: #c8dce8;
    border-left-color: #40e0d0;
}

/* ---------- ripple target / interactive blocks ---------- */
.ripple-target {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(0.5px);
    transition: background-color 0.6s ease;
}
.section-deep  .ripple-target,
.section-abyss .ripple-target {
    background: rgba(64, 224, 208, 0.04);
}
.ripple-target:hover {
    background: rgba(64, 224, 208, 0.08);
}

/* the spawned ripple element */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(64, 224, 208, 0.45) 0%, rgba(64, 224, 208, 0) 70%);
    pointer-events: none;
    width: 12px;
    height: 12px;
    animation: rippleOut 1100ms ease-out forwards;
    mix-blend-mode: screen;
}

@keyframes rippleOut {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    60%  { opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

/* ---------- stream list ---------- */
.stream-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}
.stream-item {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin: 0.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    transition: transform 0.6s ease, background-color 0.6s ease;
}
.stream-item:hover {
    transform: translateX(4px);
}
.stream-num {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.4rem;
    color: #40e0d0;
    flex-shrink: 0;
    min-width: 2rem;
}
.stream-text {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: inherit;
}

/* ---------- caustic band (midwater) ---------- */
.caustic-band {
    position: relative;
    height: 80px;
    margin: 2.5rem 0;
    overflow: hidden;
    border-radius: 200px;
    background: linear-gradient(to right, rgba(26,74,106,0) 0%, rgba(26,74,106,0.3) 50%, rgba(26,74,106,0) 100%);
}
.caustic-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 1px;
    background: linear-gradient(to right,
        rgba(64, 224, 208, 0) 0%,
        rgba(64, 224, 208, 0.55) 30%,
        rgba(200, 220, 232, 0.7) 50%,
        rgba(64, 224, 208, 0.55) 70%,
        rgba(64, 224, 208, 0) 100%);
    transform: translateY(0);
    animation: causticDrift 11s linear infinite;
    filter: blur(0.5px);
}
.caustic-line:nth-child(1) { top: 30%; animation-duration: 9s;  opacity: 0.7; }
.caustic-line:nth-child(2) { top: 50%; animation-duration: 14s; opacity: 0.85; }
.caustic-line:nth-child(3) { top: 72%; animation-duration: 11s; animation-delay: -3s; opacity: 0.6; }

@keyframes causticDrift {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* ---------- lumen grid (deep section) ---------- */
.lumen-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
}

.lumen {
    position: relative;
    padding: 1.75rem 1.75rem 1.75rem 3.25rem;
    border-radius: 18px;
    background: rgba(64, 224, 208, 0.04);
    border: 1px solid rgba(64, 224, 208, 0.18);
    transition: border-color 0.6s ease, background-color 0.6s ease;
}
.lumen:hover {
    border-color: rgba(64, 224, 208, 0.4);
}
.lumen-dot {
    position: absolute;
    left: 1.4rem;
    top: 2.05rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #40e0d0;
    box-shadow: 0 0 8px rgba(64, 224, 208, 0.7),
                0 0 18px rgba(64, 224, 208, 0.35);
    animation: pulse 3.6s ease-in-out infinite;
}
.lumen:nth-child(2) .lumen-dot { animation-delay: -1.2s; }
.lumen:nth-child(3) .lumen-dot { animation-delay: -2.4s; }

@keyframes pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.85); }
    50%      { opacity: 1;    transform: scale(1.15); }
}

.lumen-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.3rem;
    color: #40e0d0;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.lumen-body {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #c8dce8;
}

/* ---------- biolume cluster (abyss section) ---------- */
.biolume-cluster {
    position: relative;
    height: 220px;
    margin: 3rem 0 2rem;
    pointer-events: none;
}
.biolume {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.95) 0%, rgba(64, 224, 208, 0.4) 30%, rgba(64, 224, 208, 0) 70%);
    filter: blur(0.5px);
    animation: bioluminesce 5s ease-in-out infinite;
}
.biolume-1 { width: 16px; height: 16px; top: 20%;  left: 15%; animation-delay: 0s;     }
.biolume-2 { width: 9px;  height: 9px;  top: 60%;  left: 35%; animation-delay: -1.4s;  }
.biolume-3 { width: 22px; height: 22px; top: 30%;  left: 55%; animation-delay: -2.6s;  }
.biolume-4 { width: 11px; height: 11px; top: 75%;  left: 70%; animation-delay: -0.8s;  }
.biolume-5 { width: 14px; height: 14px; top: 45%;  left: 85%; animation-delay: -3.3s;  }
.biolume-6 { width: 7px;  height: 7px;  top: 12%;  left: 78%; animation-delay: -1.9s;  }

@keyframes bioluminesce {
    0%, 100% { opacity: 0.15; transform: scale(0.7); }
    40%      { opacity: 1;    transform: scale(1.2); }
    60%      { opacity: 0.9;  transform: scale(1);   }
}

/* ---------- signoff ---------- */
.signoff {
    margin-top: 4rem;
    padding-top: 3rem;
    text-align: center;
    border-top: 1px solid rgba(64, 224, 208, 0.18);
}
.signoff-mark {
    display: block;
    font-size: 1.6rem;
    color: #40e0d0;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 12px rgba(64, 224, 208, 0.6);
}
.signoff-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.4rem;
    color: #c8dce8;
    letter-spacing: 0.04em;
}
.signoff-sub {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: rgba(200, 220, 232, 0.6);
    letter-spacing: 0.18em;
    text-transform: lowercase;
    margin-top: 0.5rem;
}

/* ---------- wave dividers ---------- */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: clamp(50px, 8vw, 90px);
    display: block;
    z-index: 1;
    animation: waveShift 8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes waveShift {
    0%   { transform: translateX(-2%); }
    50%  { transform: translateX(2%);  }
    100% { transform: translateX(-2%); }
}

/* the last section has no divider following it */
.section-abyss { padding-bottom: clamp(8rem, 16vw, 14rem); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
    .section { padding-left: 1.25rem; padding-right: 1.25rem; }
    .display { font-size: clamp(2.2rem, 9vw, 3rem); }
    .lede { font-size: 1.05rem; }
    .biolume-cluster { height: 180px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .floating,
    .wave-divider,
    .caustic-line,
    .caustics,
    .lumen-dot,
    .biolume,
    .surface-light {
        animation: none !important;
    }
    .ripple { display: none !important; }
    .stream-item:hover { transform: none; }
}
