/* ===== DREAM CYCLE base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #111733;
    color: #eef2fa;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono-tag, .mono-hint, .mono-pill {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}
.mono-hint { color: #7a86a8; font-size: 12px; letter-spacing: 0.12em; }

/* ===== Section heads ===== */
.section-head {
    text-align: center;
    margin: 0 auto 34px;
    position: relative;
}
.section-title {
    font-size: clamp(24px, 3.4vw, 34px);
    letter-spacing: 0.01em;
    display: block;
    line-height: 1.2;
}
.section-title .sh-serif {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: #7ba7e0;
}
.section-title .sh-sans {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #eef2fa;
}
.section-line {
    display: block;
    width: 96px; height: 3px;
    margin: 0 auto 14px;
    border-radius: 2px;
    background: linear-gradient(120deg, #7ba7e0, #b8a8e0, #6ec4b8);
    position: relative;
    overflow: hidden;
}
.section-line.sweeping::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(238,242,250,0.6), transparent);
    transform: translateX(-100%);
    animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.section-sub { color: #7a86a8; font-size: 12px; letter-spacing: 0.14em; display: block; margin-top: 8px; }

.h-reveal { opacity: 0; }
.h-reveal.revealed { opacity: 1; }

/* ===== Header ===== */
.dc-header {
    position: sticky; top: 0; z-index: 60;
    height: 76px;
    background: rgba(17, 23, 51, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.header-edge {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #7ba7e0, #b8a8e0);
}
.dc-header-inner {
    max-width: 1240px; margin: 0 auto;
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; padding: 0 22px;
    position: relative;
}
.dc-starline {
    position: absolute; top: 50%;
    width: 60px; height: 10px;
    transform: translateY(-50%);
    background-image: radial-gradient(rgba(238,242,250,0.4) 1px, transparent 1px);
    background-size: 7px 5px;
    opacity: 0.7;
    animation: twinkle 3.5s ease-in-out infinite;
}
.dc-starline-left { left: 4px; }
.dc-starline-right { right: 4px; }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.85; } }

.dc-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dc-moons { display: flex; align-items: center; gap: 4px; }
.dc-moons i { border-radius: 50%; display: block; }
.dc-moons i:nth-child(1) { width: 6px; height: 6px; background: #7ba7e0; }
.dc-moons i:nth-child(2) { width: 8px; height: 8px; background: #b8a8e0; }
.dc-moons i:nth-child(3) { width: 10px; height: 10px; background: #6ec4b8; }
.dc-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.dc-logo { font-family: 'Nunito', sans-serif; white-space: nowrap; }
.logo-dream {
    font-family: 'Lora', Georgia, serif;
    font-style: italic; font-weight: 600;
    color: #7ba7e0; font-size: 24px;
}
.logo-cycle { font-weight: 800; text-transform: uppercase; color: #b8a8e0; font-size: 20px; letter-spacing: 0.22em; margin-left: 6px; }
.dc-brand-sub { color: #6ec4b8; font-size: 9.5px; letter-spacing: 0.22em; }

.dc-nav { display: flex; align-items: baseline; gap: 26px; }
.dc-nav a { font-size: 15px; transition: transform 0.25s ease, filter 0.25s ease; }
.dc-nav a:hover { transform: translateY(-2px); filter: brightness(1.2); }
.nav-science { font-family: 'Lora', serif; font-style: italic; font-weight: 600; color: #7ba7e0; }
.nav-rituals { font-family: 'Nunito', sans-serif; font-weight: 800; text-transform: uppercase; color: #b8a8e0; letter-spacing: 0.08em; }
.nav-devices { font-family: 'Lora', serif; font-style: italic; font-weight: 600; color: #6ec4b8; }
.nav-dreams { font-family: 'Nunito', sans-serif; font-weight: 800; text-transform: uppercase; color: #f0c987; letter-spacing: 0.08em; }

.dc-head-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.2; }
.info-teal { color: #6ec4b8; font-size: 10.5px; letter-spacing: 0.1em; }
.info-gold { color: #f0c987; font-size: 11px; letter-spacing: 0.12em; }

/* ===== Layout ===== */
.main-content { max-width: 1240px; margin: 0 auto; padding: 0 22px 70px; }
section { margin-bottom: 88px; }

/* ===== Hero: Moon Phases (desktop) ===== */
.dc-hero { position: relative; padding-top: 26px; }
.dc-hero-mob { display: none; }
.dc-hero-grid {
    display: grid;
    grid-template-columns: 42fr 58fr;
    gap: 8px;
    height: 72vh; min-height: 400px; max-height: 640px;
}
.dc-moon-col {
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(123,167,224,0.1), transparent 70%);
    border-radius: 24px;
    min-width: 0;
}
.dc-moon-card {
    position: relative;
    width: min(320px, 82%);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(120deg, #7ba7e0, #b8a8e0);
    box-shadow: 0 0 60px rgba(123,167,224,0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.dc-moon-card:hover { transform: scale(1.04); box-shadow: 0 0 90px rgba(123,167,224,0.55); }
.dc-moon-inner {
    position: relative; width: 100%; height: 100%;
    border-radius: 50%; overflow: hidden;
    background: #0a0e22;
}
.dc-moon-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dc-moon-card:hover .dc-moon-img { transform: scale(1.05); }
.dc-moon-shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,34,0.94) 0%, rgba(10,14,34,0.35) 45%, transparent 70%);
}
.dc-moon-text {
    position: absolute; left: 22px; right: 22px; bottom: 30px;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    text-align: center;
}
.dc-moon-text i {
    font-family: 'Lora', serif; font-style: italic;
    font-weight: 600; font-size: 22px; color: #eef2fa; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-moon-pill {
    background: rgba(123,167,224,0.18);
    border: 1px solid rgba(123,167,224,0.7);
    color: #a8c8f0; font-size: 9.5px; letter-spacing: 0.16em;
    padding: 3px 12px; border-radius: 999px;
}
.dc-moon-cta {
    position: absolute; right: 14px; bottom: 14px;
    color: #7ba7e0; font-size: 11px; letter-spacing: 0.06em; font-weight: 600;
    opacity: 0; transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dc-moon-card:hover .dc-moon-cta { opacity: 1; transform: translateX(0); }
.dc-ring {
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(123,167,224,0.55);
    animation: moon-pulse 4.2s ease-out infinite;
    pointer-events: none;
}
.dc-ring.r2 { animation-delay: 1.4s; border-color: rgba(184,168,224,0.5); }
.dc-ring.r3 { animation-delay: 2.8s; border-color: rgba(110,196,184,0.45); }
@keyframes moon-pulse {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(1.38); opacity: 0; }
}

.dc-hero-right {
    display: flex; flex-direction: column; gap: 8px;
    min-width: 0;
}
.dc-cloud-card {
    position: relative; overflow: hidden;
    flex: 0 0 45%;
    border: 1.5px solid rgba(110,196,184,0.5);
    border-radius: 40% 40% 20px 20px / 30% 30% 20px 20px;
    background: #0a0e22;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.dc-cloud-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dc-card-shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,34,0.92) 0%, rgba(10,14,34,0.25) 45%, transparent 65%);
}
.dc-cloud-meta {
    position: absolute; left: 20px; right: 20px; bottom: 16px;
    display: flex; align-items: center; gap: 12px;
}
.dc-pill {
    font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em;
    padding: 4px 12px; border-radius: 999px;
    flex-shrink: 0;
}
.pill-teal { background: rgba(110,196,184,0.18); border: 1px solid rgba(110,196,184,0.7); color: #9adcd2; }
.pill-lav { background: rgba(184,168,224,0.18); border: 1px solid rgba(184,168,224,0.7); color: #d4c8f0; }
.pill-gold { background: rgba(240,201,135,0.18); border: 1px solid rgba(240,201,135,0.7); color: #f7dba8; }
.dc-cloud-title {
    font-family: 'Nunito', sans-serif; font-weight: 700;
    font-size: 17px; color: #eef2fa; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-cloud-card:hover { transform: scale(1.03); box-shadow: 0 14px 34px rgba(0,0,0,0.6), 0 0 26px rgba(110,196,184,0.45); }
.dc-cloud-card:hover .dc-cloud-img { transform: scale(1.05); }

.dc-duo { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; }
.dc-star-card {
    position: relative;
    background: linear-gradient(120deg, #b8a8e0, #7ba7e0);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    padding: 2.5px;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.dc-star-inner {
    position: relative; width: 100%; height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #0a0e22;
    overflow: hidden;
    display: block;
}
.dc-star-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dc-star-label {
    position: absolute; left: 0; right: 0; bottom: 22%;
    text-align: center;
    font-size: 9.5px; letter-spacing: 0.18em; color: #d4c8f0;
    text-shadow: 0 1px 6px #0a0e22;
}
.dc-star-card:hover { transform: scale(1.03); filter: drop-shadow(0 0 18px rgba(184,168,224,0.55)); }
.dc-star-card:hover .dc-star-inner img { transform: scale(1.06); }
.dc-rect-card {
    position: relative; overflow: hidden;
    border: 1.5px solid rgba(240,201,135,0.55);
    border-radius: 22px;
    background: #0a0e22;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.dc-rect-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dc-rect-label {
    position: absolute; left: 0; right: 0; bottom: 14px;
    text-align: center;
    font-size: 9.5px; letter-spacing: 0.18em; color: #f7dba8;
    text-shadow: 0 1px 6px #0a0e22;
}
.dc-rect-card:hover { transform: scale(1.03); box-shadow: 0 12px 30px rgba(0,0,0,0.55), 0 0 24px rgba(240,201,135,0.5); }
.dc-rect-card:hover img { transform: scale(1.06); }
.dc-hint { text-align: center; margin-top: 14px; }

/* ===== Hero mobile: four fixed shape entries (<= 130px) ===== */
@media (max-width: 768px) {
    .dc-hero { padding-top: 10px; margin-bottom: 44px; }
    .dc-hero-desk { display: none; }
    .dc-hero-mob {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
        padding: 6px 0;
        max-height: 130px;
        overflow: hidden;
    }
    .dc-mo {
        width: 68px; height: 72px;
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        flex-shrink: 0;
    }
    .dc-mo-shape {
        position: relative;
        width: 68px; height: 56px;
        overflow: hidden;
        background: #0a0e22;
    }
    .dc-mo-shape img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .dc-mo-label { font-size: 9px; letter-spacing: 0.08em; line-height: 1; }
    .lbl-moon { color: #7ba7e0; }
    .lbl-teal { color: #6ec4b8; }
    .lbl-lav { color: #b8a8e0; }
    .lbl-gold { color: #f0c987; }
    .dc-mo-circle .dc-mo-shape {
        width: 58px; height: 58px;
        border-radius: 50%;
        border: 2px solid #7ba7e0;
        box-shadow: 0 0 14px rgba(123,167,224,0.4);
    }
    .dc-mo-cloud .dc-mo-shape {
        border: 1.5px solid rgba(110,196,184,0.7);
        border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    }
    .dc-mo-hex .dc-mo-shape {
        border: none;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        outline: none;
    }
    .dc-mo-hex .dc-mo-shape::before {
        content: '';
        position: absolute; inset: 0;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        background: linear-gradient(120deg, #b8a8e0, #7ba7e0);
        z-index: 1;
    }
    .dc-mo-hex .dc-mo-shape img { inset: 2.5px; z-index: 2; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
    .dc-mo-pillow .dc-mo-shape {
        height: 50px;
        border: 1.5px solid rgba(240,201,135,0.7);
        border-radius: 16px;
        box-shadow: inset 0 12px 14px -9px rgba(10,14,34,0.9), inset 0 -12px 14px -9px rgba(10,14,34,0.9);
    }
    .dc-mo:active { transform: scale(0.94); }
}

/* ===== Sleep Stages (wave) ===== */
.dc-stages-section {
    position: relative;
    background:
        repeating-radial-gradient(circle at 30% 30%, rgba(123,167,224,0.05) 0 2px, transparent 2px 14px),
        linear-gradient(160deg, rgba(123,167,224,0.07), rgba(110,196,184,0.07));
    border-radius: 28px;
    padding: 46px 26px 50px;
    overflow: hidden;
}
.dc-stage-track {
    position: relative;
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px;
    max-width: 980px; margin: 0 auto;
    padding: 20px 6px 26px;
}
.dc-wave {
    position: absolute; left: 0; right: 0; top: 50%;
    width: 100%; height: 130px;
    transform: translateY(-46%);
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.dc-stage-track:hover .dc-wave { opacity: 1; }
.dc-node {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    position: relative; z-index: 1; flex: 1;
}
.dc-node-top { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dc-node-top i {
    font-family: 'Nunito', sans-serif; font-style: normal;
    font-weight: 700; font-size: 14px; color: #eef2fa;
}
.dc-node-top em { font-style: normal; font-size: 10.5px; letter-spacing: 0.12em; color: var(--ac); }
.dc-node-circle {
    width: 90px; height: 90px; border-radius: 50%;
    border: 3px solid var(--ac);
    overflow: hidden;
    background: #0a0e22;
    box-shadow: 0 0 0 7px #111733, 0 8px 20px rgba(0,0,0,0.5);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.dc-node-circle img { width: 100%; height: 100%; object-fit: cover; }
.dc-node-desc {
    font-size: 9.5px; color: #7a86a8; letter-spacing: 0.06em;
    text-align: center; max-width: 150px; line-height: 1.4;
}
.dc-node:hover .dc-node-circle {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px #111733, 0 12px 28px rgba(0,0,0,0.55), 0 0 26px color-mix(in srgb, var(--ac) 60%, transparent);
}

/* ===== Night Rituals (candles) ===== */
.dc-rituals-section { position: relative; }
.dc-ritual-track {
    display: flex; gap: 18px;
    overflow-x: auto;
    padding: 44px 16px 28px;
    position: relative;
    background: rgba(184,168,224,0.08);
    border: 1.5px dashed rgba(123,167,224,0.55);
    border-radius: 24px;
    background-image: radial-gradient(rgba(238,242,250,0.05) 1px, transparent 1px);
    background-size: 14px 12px;
    scrollbar-width: thin;
}
.dc-candle {
    position: relative;
    flex: 0 0 150px;
    display: flex; flex-direction: column; align-items: center;
    transition: transform 0.35s ease;
    animation: candle-in 0.6s ease both;
    animation-delay: var(--sd, 0s);
}
@keyframes candle-in { from { opacity: 0; transform: translateY(18px); } }
.dc-flame {
    width: 52px; height: 36px;
    background: linear-gradient(180deg, #b8a8e0, #f0c987);
    clip-path: polygon(50% 0%, 78% 30%, 100% 100%, 0% 100%, 22% 30%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 7px;
    color: #1a2247;
    position: relative; z-index: 1;
    transform-origin: 50% 100%;
    transition: transform 0.3s ease;
}
.dc-flame svg { width: 16px; height: 16px; }
.dc-candle-body {
    width: 100%;
    background: linear-gradient(160deg, #b8a8e0, #f0c987);
    border-radius: 0 0 18px 18px;
    padding: 14px 12px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    margin-top: -2px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
    transition: box-shadow 0.35s ease;
}
.dc-candle:nth-child(even) .dc-flame { background: linear-gradient(180deg, #f0c987, #b8a8e0); }
.dc-candle:nth-child(even) .dc-candle-body { background: linear-gradient(160deg, #f0c987, #b8a8e0); }
.dc-candle-name {
    font-family: 'Lora', serif; font-style: italic;
    font-weight: 600; font-size: 18px; color: #1a2247; text-align: center; line-height: 1.2;
}
.dc-candle-thumb {
    width: 100px; height: 80px; border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(26,34,71,0.4);
}
.dc-candle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-candle-time { font-size: 10.5px; letter-spacing: 0.1em; color: #1a2247; font-weight: 600; }
.dc-candle-tip {
    font-size: 9px; letter-spacing: 0.06em;
    background: rgba(110,196,184,0.9);
    color: #0a0e22; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
    text-align: center; line-height: 1.4;
}
.dc-candle:hover { transform: translateY(-8px); }
.dc-candle:hover .dc-flame { animation: flame-sway 0.7s ease-in-out infinite; }
@keyframes flame-sway {
    0%, 100% { transform: rotate(-4deg) scaleY(1); }
    50% { transform: rotate(4deg) scaleY(1.06); }
}
.dc-candle:hover .dc-candle-body { box-shadow: 0 18px 36px rgba(0,0,0,0.55), 0 0 26px rgba(184,168,224,0.55); }

/* ===== Expert Arc (crescents) ===== */
.dc-expert-section {
    background: linear-gradient(160deg, rgba(110,196,184,0.07), rgba(123,167,224,0.07));
    border-radius: 28px;
    padding: 46px 26px 50px;
    position: relative;
    overflow: hidden;
}
.dc-expert-row {
    display: flex; justify-content: center; align-items: flex-start;
    gap: 22px; flex-wrap: wrap;
    padding: 26px 0 40px;
}
.dc-expert-card {
    width: 160px;
    display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(160deg, #6ec4b8, #7ba7e0);
    border-radius: 50% 50% 100% 100% / 40% 40% 60% 60%;
    padding: 20px 14px 30px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.5);
    transform: rotate(var(--ang)) translateY(var(--ty));
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.dc-expert-face {
    width: 60px; height: 60px; border-radius: 50%;
    border: 3px solid #eef2fa;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    background: #0a0e22;
}
.dc-expert-face img { width: 100%; height: 100%; object-fit: cover; }
.dc-expert-body { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 12px; }
.dc-expert-name { font-family: 'Lora', serif; font-style: italic; font-weight: 600; font-size: 15px; color: #1a2247; text-align: center; }
.dc-expert-focus { font-size: 9.5px; color: rgba(26,34,71,0.8); letter-spacing: 0.06em; }
.dc-expert-stars { color: #f0c987; font-size: 13px; letter-spacing: 0.12em; text-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.dc-expert-card:hover {
    transform: rotate(0deg) translateY(calc(var(--ty) - 8px));
    box-shadow: 0 16px 34px rgba(0,0,0,0.55), 0 0 26px rgba(110,196,184,0.6);
}

/* ===== Dream Symbols (clouds) ===== */
.dc-dreams-section {
    background: linear-gradient(160deg, rgba(240,201,135,0.06), rgba(184,168,224,0.08));
    border-radius: 28px;
    padding: 46px 26px 44px;
}
.dc-symbol-field {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center;
    gap: 26px 20px;
    max-width: 900px; margin: 0 auto;
    position: relative;
}
.dc-symbol {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: linear-gradient(120deg, #f0c987, #b8a8e0);
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 55%;
    padding: 22px 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.dc-symbol:nth-child(even) {
    background: linear-gradient(120deg, #b8a8e0, #f0c987);
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 50%;
}
.dc-symbol-icon { color: #1a2247; display: flex; }
.dc-symbol-icon svg { width: 26px; height: 26px; }
.dc-symbol-meaning {
    font-family: 'Lora', serif; font-style: italic;
    font-size: 12px; color: #1a2247; text-align: center; max-width: 150px; line-height: 1.4;
}
.dc-symbol-thread {
    position: absolute; right: -20px; top: 50%;
    width: 18px;
    border-top: 1.5px dashed rgba(240,201,135,0.55);
    pointer-events: none;
}
.dc-symbol:last-child .dc-symbol-thread { display: none; }
.ds-lg { padding: 26px 32px; }
.ds-lg .dc-symbol-icon svg { width: 30px; height: 30px; }
.ds-sm { padding: 18px 22px; }
.dc-symbol:hover {
    transform: scale(1.08) translateY(-4px);
    animation: symbol-bounce 0.6s ease;
    box-shadow: 0 14px 30px rgba(0,0,0,0.5), 0 0 24px rgba(240,201,135,0.55);
}
@keyframes symbol-bounce {
    0%, 100% { transform: scale(1.08) translateY(-4px); }
    40% { transform: scale(1.12) translateY(-10px); }
}
.dc-topic-row { margin-top: 36px; text-align: center; }
.dc-topic-title { display: block; margin-bottom: 12px; }
.dc-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dc-topic {
    font-size: 11px; color: #7ba7e0;
    border: 1px solid rgba(123,167,224,0.5);
    border-radius: 999px; padding: 4px 12px;
    background: rgba(26,34,71,0.6);
    transition: background 0.25s ease, color 0.25s ease;
}
.dc-topic:hover { background: #7ba7e0; color: #0a0e22; }

/* ===== Masonry + sidebar ===== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}
.masonry-stream { display: flex; flex-direction: column; gap: 8px; }
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.dc-masonry-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #1a2247;
    border: 1px solid rgba(123,167,224,0.35);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.masonry-img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.masonry-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.masonry-badge {
    position: absolute; top: 10px; left: 10px;
    font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
    background: #f0c987; color: #1a2247; font-weight: 600;
    padding: 4px 11px; border-radius: 999px;
    box-shadow: 0 3px 10px rgba(240,201,135,0.4);
}
.masonry-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.masonry-cat { font-size: 10px; letter-spacing: 0.14em; color: #7ba7e0; }
.masonry-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 16px; line-height: 1.35; color: #eef2fa;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.masonry-meta {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px; color: rgba(122,134,168,0.9); letter-spacing: 0.04em;
}
.masonry-meta svg { width: 11px; height: 11px; color: #f0c987; }
.masonry-read {
    position: absolute; right: 14px; bottom: 14px;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 11.5px;
    background: #b8a8e0; color: #1a2247;
    padding: 5px 14px; border-radius: 999px;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dc-masonry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.55), 0 0 24px color-mix(in srgb, #7ba7e0 40%, transparent), 0 0 24px color-mix(in srgb, #b8a8e0 35%, transparent);
}
.dc-masonry-card:hover .masonry-img { transform: scale(1.05); }
.dc-masonry-card:hover .masonry-read { opacity: 1; transform: translateY(0); }
.masonry-hidden { display: none; }

/* inline ad divider */
.dc-ad-divider {
    border-top: 1px solid rgba(123,167,224,0.3);
    border-bottom: 1px solid rgba(123,167,224,0.3);
    padding: 6px 0;
}

/* Load more */
.load-more-wrap { text-align: center; margin-top: 30px; position: relative; }
.load-more-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #f0c987; color: #1a2247;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px;
    padding: 13px 34px; border-radius: 999px;
    box-shadow: 0 6px 18px rgba(240,201,135,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.load-more-btn:hover { transform: translateY(-3px); background: #f7dba8; box-shadow: 0 12px 26px rgba(240,201,135,0.45); }
.load-ring {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2.5px solid rgba(26,34,71,0.35);
    border-top-color: #1a2247;
    display: none;
}
.load-more-btn.loading .load-ring { display: block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.infinite-ring {
    width: 26px; height: 26px; margin: 16px auto 0; border-radius: 50%;
    border: 3px solid rgba(123,167,224,0.3);
    border-top-color: #7ba7e0;
    display: none;
}
.infinite-ring.spin { display: block; animation: spin 0.9s linear infinite; }
.scroll-sentinel { height: 1px; }

/* Sidebar */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.dc-widget {
    background: #1a2247;
    border: 1px solid rgba(123,167,224,0.3);
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.widget-title {
    display: flex; align-items: center; gap: 9px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800; font-size: 16px; color: #eef2fa;
    margin-bottom: 16px;
}
.live-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #6ec4b8;
    animation: breathe 2.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.55; } }
.dc-daily-list { display: flex; flex-direction: column; gap: 8px; }
.dc-daily-row {
    display: flex; align-items: center; gap: 9px;
    background: #111733;
    border-radius: 10px;
    padding: 9px 10px;
    transition: transform 0.25s ease, background 0.25s ease;
}
.dc-daily-row:hover { transform: translateX(3px); background: #232c5a; }
.dc-daily-bar { width: 3px; align-self: stretch; border-radius: 3px; background: var(--lc); flex-shrink: 0; }
.dc-daily-name { flex: 1; font-size: 12.5px; font-weight: 500; color: #eef2fa; line-height: 1.35; }
.dc-daily-val { font-size: 11.5px; color: #f0c987; font-weight: 600; flex-shrink: 0; }

/* ===== Footer ===== */
.dc-footer {
    position: relative;
    background: #0a0e22;
    color: #eef2fa;
    padding: 40px 0 30px;
    overflow: hidden;
}
.footer-starbar {
    position: absolute; top: 0; left: 0; right: 0; height: 10px;
    background-image: radial-gradient(rgba(238,242,250,0.4) 1px, transparent 1px);
    background-size: 14px 12px;
    animation: star-drift 12s linear infinite;
}
@keyframes star-drift { to { background-position: 200px 0; } }
.footer-edge {
    position: absolute; top: 10px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, rgba(123,167,224,0.55), rgba(184,168,224,0.55));
}
.footer-inner {
    max-width: 1240px; margin: 0 auto; padding: 10px 22px 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.footer-logo { display: flex; align-items: baseline; gap: 8px; }
.footer-logo .logo-dream { font-size: 26px; }
.footer-logo .logo-cycle { font-size: 20px; }
.footer-tagline { color: #6ec4b8; font-size: 10px; letter-spacing: 0.2em; margin-top: 4px; }
.footer-nav { display: flex; gap: 30px; }
.foot-link { font-size: 15px; transition: transform 0.25s ease, filter 0.25s ease; display: inline-block; }
.foot-link:hover { transform: translateY(-2px); filter: brightness(1.25); }
.foot-contact { font-family: 'Lora', serif; font-style: italic; font-weight: 600; color: #7ba7e0; }
.foot-privacy { font-family: 'Nunito', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #b8a8e0; }
.foot-about { font-family: 'Lora', serif; font-style: italic; font-weight: 600; color: #6ec4b8; }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(122,134,168,0.5); letter-spacing: 0.08em; }

/* ===== Detail page ===== */
.article-main { max-width: 900px; margin: 0 auto; padding: 0 22px 70px; }
.article-hero {
    position: relative;
    height: 56vh; min-height: 320px; max-height: 520px;
    margin: 20px -22px 0;
    background: radial-gradient(ellipse at 50% 45%, rgba(123,167,224,0.5) 0%, #111733 72%);
    overflow: hidden;
}
.article-hero-glow {
    position: absolute; right: -60px; bottom: -60px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(184,168,224,0.45), transparent 70%);
    filter: blur(6px);
}
.article-star-edge {
    position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
    background-image: radial-gradient(rgba(238,242,250,0.35) 1px, transparent 1px);
    background-size: 7px 10px;
    animation: star-vertical 9s linear infinite;
}
@keyframes star-vertical { to { background-position: 0 200px; } }
.article-hero-corner {
    position: absolute; left: 26px; bottom: 22px;
    width: 12px; height: 12px; border-radius: 50%; background: #7ba7e0;
    box-shadow: 18px 0 0 #b8a8e0, 36px 0 0 #6ec4b8;
}
.article-hero-actions {
    position: absolute; top: 18px; left: 26px; z-index: 3;
    display: flex; gap: 10px;
}
.hero-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(10,14,34,0.55);
    border: 1.5px solid rgba(123,167,224,0.7);
    color: #eef2fa;
    border-radius: 999px;
    padding: 9px 16px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, background 0.25s ease;
}
.hero-chip svg { width: 15px; height: 15px; }
.hero-chip:hover { transform: scale(1.08); background: rgba(123,167,224,0.25); }
.article-cover-wrap { position: absolute; inset: 64px 0 0; }
.article-cover {
    width: 100%; height: 100%; object-fit: cover;
    cursor: zoom-in;
}
.article-cover-fade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
    background: linear-gradient(to top, #111733, transparent);
    pointer-events: none;
}

.article-headline { padding: 30px 0 8px; text-align: left; }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.mono-pill {
    font-size: 11px; letter-spacing: 0.1em;
    border: 1px solid rgba(123,167,224,0.6);
    color: #7ba7e0;
    border-radius: 999px;
    padding: 4px 12px;
    background: rgba(26,34,71,0.6);
}
.article-heat { display: inline-flex; align-items: center; gap: 5px; color: #f0c987; border-color: rgba(240,201,135,0.6); }
.article-heat svg { width: 12px; height: 12px; color: #f0c987; }
.detail-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
    background: linear-gradient(120deg, #f0c987, #f7dba8);
    color: #1a2247; font-weight: 600;
    padding: 4px 12px; border-radius: 999px;
}
.article-title { font-size: 32px; line-height: 1.25; margin-bottom: 12px; }
.article-title .t-dream {
    font-family: 'Lora', serif; font-style: italic; font-weight: 600;
    color: #7ba7e0;
}
.article-title .t-name {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    color: #b8a8e0; margin-left: 8px;
}
.article-meta-row { display: flex; gap: 8px; flex-wrap: wrap; color: rgba(122,134,168,0.9); font-size: 12px; }
.meta-dot { color: #7ba7e0; }

/* Param cards */
.param-section { margin: 28px 0; }
.param-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.param-card {
    position: relative;
    display: flex; flex-direction: column; gap: 6px;
    background: #1a2247;
    border: 1px solid rgba(123,167,224,0.4);
    border-radius: 16px;
    padding: 18px 16px 22px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: transform 0.3s ease;
}
.param-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background-image: radial-gradient(rgba(238,242,250,0.4) 1px, transparent 1px);
    background-size: 7px 5px;
}
.param-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, rgba(123,167,224,0.7), rgba(184,168,224,0.7));
    opacity: 0.55;
}
.param-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: rgba(122,134,168,0.55); }
.param-value { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 24px; color: #f0c987; }
.param-hint { font-size: 11.5px; color: #7a86a8; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s ease, opacity 0.35s ease; }
.param-card:hover { transform: translateY(-5px); }
.param-card:hover .param-hint { max-height: 60px; opacity: 1; }

/* Sleep Data module */
.sleep-module {
    background: #1a2247;
    border: 1.5px solid rgba(123,167,224,0.5);
    border-radius: 20px;
    padding: 22px 24px 26px;
    margin: 30px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.sleep-label {
    display: inline-flex; align-items: center; gap: 8px;
    color: #6ec4b8; font-size: 12px; letter-spacing: 0.18em; margin-bottom: 16px; font-weight: 600;
}
.sleep-label svg { width: 16px; height: 16px; }
.sd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sd-category { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 26px; color: var(--brandc, #7ba7e0); }
.sd-score { font-size: 30px; font-weight: 600; color: #f0c987; font-family: 'JetBrains Mono', monospace; }
.sd-mini { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.1em; color: #7a86a8; margin: 14px 0 18px; }
.sd-track, .sd-position { margin-top: 12px; }
.sd-track-label, .sd-position-label { display: block; font-size: 10.5px; letter-spacing: 0.12em; color: #7a86a8; margin-bottom: 6px; }
.sd-bar {
    height: 10px; border-radius: 999px;
    background: rgba(123,167,224,0.15);
    overflow: hidden;
}
.sd-bar-fill {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #6ec4b8, #9adcd2);
    animation: bar-grow 1.2s ease both;
}
@keyframes bar-grow { from { width: 0 !important; } }
.sd-bar-lav { background: rgba(184,168,224,0.2); }
.sd-bar-lav .sd-bar-fill { background: linear-gradient(90deg, #b8a8e0, #d4c8f0); }

/* Article body */
.article-body {
    max-width: 680px; margin: 34px auto;
    font-size: 18px; line-height: 1.8; color: #eef2fa;
}
.article-body p { margin-bottom: 22px; }
.article-body > p:first-of-type::first-letter {
    font-family: 'Lora', serif;
    font-size: 46px; font-weight: 700; color: #7ba7e0;
    float: left; line-height: 1; padding-right: 10px; margin-top: 4px;
}
.article-body p:nth-of-type(odd) {
    border-left: 3px solid #b8a8e0;
    padding-left: 18px;
}
.dc-term {
    color: #eef2fa;
    border-bottom: 1.5px solid rgba(110,196,184,0.8);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.dc-term:hover { background: rgba(110,196,184,0.25); color: #9adcd2; }

/* Related */
.related-section { margin-top: 50px; }
.related-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
    display: flex; flex-direction: column;
    background: #1a2247;
    border: 1px solid rgba(123,167,224,0.4);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-img-wrap { height: 110px; overflow: hidden; }
.related-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.related-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.related-cat { font-size: 9.5px; letter-spacing: 0.14em; color: #7ba7e0; }
.related-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #eef2fa; }
.related-heat { display: inline-flex; align-items: center; gap: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #f0c987; }
.related-heat svg { width: 11px; height: 11px; color: #f0c987; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,0.5); }
.related-card:hover .related-img { transform: scale(1.06); }

/* Drawers & gallery */
.term-drawer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #1a2247;
    border-top: 3px solid #7ba7e0;
    border-radius: 22px 22px 0 0;
    padding: 22px 24px 30px;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
}
.term-drawer.open { transform: translateY(0); }
.term-drawer-close {
    position: absolute; top: 10px; right: 16px;
    font-size: 24px; color: #7a86a8; line-height: 1;
}
.term-drawer-text { font-size: 15px; line-height: 1.65; color: #eef2fa; }
.cover-gallery {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10,14,34,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.cover-gallery.open { opacity: 1; pointer-events: auto; }
.cover-gallery img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.cover-gallery-close {
    position: absolute; top: 20px; right: 24px;
    font-size: 30px; color: #eef2fa; line-height: 1;
}

/* Static pages */
.static-main { max-width: 760px; margin: 0 auto; padding: 34px 22px 70px; }
.back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    color: #6ec4b8; margin-bottom: 26px;
    transition: color 0.25s ease;
}
.back-btn:hover { color: #7ba7e0; }
.static-article {
    background: #1a2247;
    border: 1px solid rgba(123,167,224,0.4);
    border-radius: 22px;
    padding: 34px 32px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.static-cat { display: inline-block; margin-bottom: 12px; }
.static-title {
    font-family: 'Lora', serif; font-style: italic;
    font-weight: 600; font-size: 30px; color: #7ba7e0;
    margin-bottom: 20px;
}
.static-content { font-size: 16px; line-height: 1.8; color: #eef2fa; }
.static-content h2 {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: 20px; color: #b8a8e0; margin: 26px 0 10px;
}
.static-content strong { color: #f0c987; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .dc-nav { display: none; }
    .param-grid { grid-template-columns: repeat(2, 1fr); }
    .related-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    section { margin-bottom: 56px; }
    .dc-head-info { display: none; }
    .dc-hero-desk { display: none; }
    .masonry-grid { grid-template-columns: 1fr; }
    .masonry-img-wrap { aspect-ratio: 1; }
    .dc-stage-track { flex-wrap: wrap; gap: 22px 10px; }
    .dc-wave { display: none; }
    .dc-node { flex: 0 0 30%; }
    .dc-node-circle { width: 74px; height: 74px; }
    .dc-ritual-track { padding: 40px 12px 22px; }
    .dc-candle { flex: 0 0 132px; }
    .dc-expert-row { gap: 16px; }
    .dc-expert-card { width: 138px; transform: rotate(0deg) translateY(0) !important; }
    .dc-symbol { padding: 18px 20px; }
    .ds-lg { padding: 20px 24px; }
    .dc-symbol-thread { display: none; }
    .related-track { grid-template-columns: 1fr; }
    .article-title { font-size: 25px; }
    .article-body { font-size: 16.5px; }
    .article-hero { height: 42vh; min-height: 250px; }
    .param-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-score { font-size: 24px; }
}
