/* ==========================================================================
   EMPOWERED PARENT — "The Cycle Ends With You"
   Bespoke immersive scroll-story for body[data-blueprint="empowered"].
   Loaded ONLY on empowered-parent.html. The empowered accent is already a
   warm brown, so this page sits naturally in the site's warm rosewood/cream
   palette (home page as reference) — no new colors. Soft, organic, tender,
   pillowy mood.
   Progressive enhancement: js/empowered.js adds `.ep-js`; without JS / reduced
   motion the page is fully readable & static (thread whole, child bright,
   reframes showing the healed response).
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Shared act scaffolding + floating motes
-------------------------------------------------------------------------- */
.ep-act { position: relative; overflow: hidden; }
body.ep-js .ep-reveal-line { opacity: 0; }
.ep-motes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ep-motes .particle { background: var(--gold); box-shadow: 0 0 8px var(--gold); opacity: 0.5; }

/* --------------------------------------------------------------------------
   1. HERO — parent & child, held together (breathing)
-------------------------------------------------------------------------- */
.ep-hero {
    padding: 172px 0 96px;
    text-align: center;
    background:
        radial-gradient(85% 120% at 50% -8%, var(--sand) 0%, var(--cream) 46%, var(--peach) 130%);
    color: var(--ink);
}
.ep-hero .breadcrumb { justify-content: center; }
.ep-hero h1 em { font-style: italic; color: var(--accent); }
.ep-hero .page-hero-sub { color: var(--rosewood); }
.ep-hero .tm-line { color: var(--ink-2); }
.ep-hero .orb { opacity: 0.55; }

.ep-embrace {
    position: relative;
    z-index: 3;
    width: 260px;
    height: 260px;
    margin: 48px auto 8px;
}
.ep-embrace-outer, .ep-embrace-inner {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 45% 38%, #ffffff 0%, var(--sand) 52%, var(--peach) 100%);
    box-shadow: 0 20px 46px rgba(107, 82, 72, 0.2), inset 0 0 0 1px rgba(201, 160, 111, 0.45);
}
.ep-embrace-outer {
    width: 190px; height: 190px;
    left: 10px; top: 22px;
    animation: ep-breathe-a 6.5s ease-in-out infinite;
}
.ep-embrace-inner {
    width: 118px; height: 118px;
    right: 14px; bottom: 16px;
    background: radial-gradient(circle at 45% 38%, #ffffff 0%, var(--peach) 55%, var(--accent-soft) 120%);
    animation: ep-breathe-b 6.5s ease-in-out infinite;
}
.ep-embrace-heart {
    position: absolute;
    left: 50%; top: 52%;
    transform: translate(-50%, -50%);
    z-index: 4;
    color: var(--accent);
    width: 42px; height: 42px;
    filter: drop-shadow(0 2px 10px rgba(201, 160, 111, 0.6));
    animation: ep-heart 6.5s ease-in-out infinite;
}
@keyframes ep-breathe-a {
    0%, 100% { transform: scale(0.97) translate(0, 0); }
    50%      { transform: scale(1.04) translate(4px, -3px); }
}
@keyframes ep-breathe-b {
    0%, 100% { transform: scale(1.03) translate(0, 0); }
    50%      { transform: scale(0.96) translate(-4px, 3px); }
}
@keyframes ep-heart {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.14); }
}

.ep-scroll-cue {
    position: relative; z-index: 3;
    margin-top: 30px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.ep-scroll-line {
    width: 1px; height: 46px;
    background: linear-gradient(var(--accent), transparent);
    animation: ep-cue 2.4s ease-in-out infinite; transform-origin: top;
}
@keyframes ep-cue {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50%      { transform: scaleY(1);   opacity: 1; }
}

/* --------------------------------------------------------------------------
   2. ACT I — THE WEIGHT WE CARRY (pinned; the tangle loosens)
-------------------------------------------------------------------------- */
.ep-act--weight {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(72% 80% at 82% 28%, var(--peach) 0%, transparent 58%),
        linear-gradient(160deg, var(--cream) 0%, var(--surface) 100%);
}
.ep-weight-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}
.ep-weight-stage { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; width: 100%; }
.ep-weight-svg { width: 100%; height: 100%; overflow: visible; }
.ep-figure { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ep-tangle { fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; opacity: 0.8; }
.ep-weight-halo {
    position: absolute; inset: 14%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 160, 111, 0.22) 0%, transparent 66%);
    filter: blur(10px); z-index: -1;
}

.ep-weight-copy .eyebrow { color: var(--accent); }
.ep-weight-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 500; line-height: 1.16;
    color: var(--ink);
    margin: 14px 0 22px;
}
.ep-weight-copy h2 em { font-style: italic; color: var(--accent); }
.ep-weight-copy .lead { color: var(--rosewood); }
.ep-weight-copy p { color: var(--text-soft); font-size: 1.06rem; margin-bottom: 16px; line-height: 1.85; }

/* --------------------------------------------------------------------------
   3. ACT II — THE CYCLE ENDS WITH YOU (pinned) · CENTREPIECE
   Warm rosewood-dark (same family as the site's bg-dark) so the released
   light truly glows gold.
-------------------------------------------------------------------------- */
.ep-act--cycle {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 90px 0;
    color: var(--cream);
    background:
        radial-gradient(80% 120% at 100% 0%, #62414c 0%, transparent 55%),
        linear-gradient(160deg, var(--plum) 0%, var(--ink) 68%, var(--ink-2) 100%);
}
.ep-cycle-head { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto 46px; }
.ep-cycle-head .eyebrow { color: var(--accent-soft); justify-content: center; }
.ep-cycle-head .eyebrow::before { background: var(--gold); }
.ep-cycle-head h2 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 500; color: var(--cream); line-height: 1.14; }
.ep-cycle-head h2 em { font-style: italic; color: var(--gold); }
.ep-cycle-head p { color: rgba(255, 238, 208, 0.72); margin: 12px auto 0; max-width: 580px; }

.ep-lineage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ep-lineage-svg { width: 100%; max-width: 860px; overflow: visible; }
.ep-thread-old { fill: none; stroke: rgba(255, 238, 208, 0.28); stroke-width: 2.5; stroke-linecap: round; }
.ep-thread-new { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(201, 160, 111, 0.7)); }
.ep-knot { fill: none; stroke: #d9b7a8; stroke-width: 2.4; stroke-linecap: round; opacity: 0.9; }
.ep-node { fill: #4a3740; stroke: var(--accent-soft); stroke-width: 2; }
.ep-node-figure { fill: none; stroke: rgba(255, 238, 208, 0.7); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ep-node-you .ep-node-figure, .ep-node-them .ep-node-figure { stroke: var(--sand); }
.ep-burst { fill: url(#epBurstGrad); opacity: 0; }
.ep-node-label { fill: var(--sand); font-family: var(--font-display); font-style: italic; font-size: 26px; font-weight: 600; text-anchor: middle; }
.ep-heartlet { fill: var(--gold); opacity: 0; }

.ep-cycle-captions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    width: 100%;
    max-width: 860px;
    margin: 34px auto 0;
}
.ep-cap { text-align: center; padding: 0 8px; }
.ep-cap h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.8vw, 1.7rem); font-weight: 600; color: var(--sand); line-height: 1.2; margin-bottom: 12px; }
.ep-cap p { color: rgba(255, 238, 208, 0.78); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.65; margin: 0; }

/* --------------------------------------------------------------------------
   4. ACT III — SAME MOMENT, A NEW RESPONSE (interactive reframe)
-------------------------------------------------------------------------- */
.ep-act--reframe { padding: 118px 0; background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); }
.ep-reframe-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.ep-reframe-head .eyebrow { color: var(--accent); }
.ep-reframe-head .section-title em { color: var(--accent); }
.ep-reframe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 940px;
    margin: 0 auto;
}
.ep-reframe-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 34px 12px 34px 12px;
    padding: 30px 30px 26px;
    box-shadow: 0 10px 30px rgba(107, 82, 72, 0.07);
    transition: border-radius 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.ep-reframe-card.is-healed {
    background: linear-gradient(160deg, #fffaf3 0%, var(--sand) 100%);
    border-radius: 12px 34px 12px 34px;
    box-shadow: 0 18px 44px rgba(201, 160, 111, 0.2);
}
.ep-moment {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 16px;
}
.ep-moment::before { content: ''; width: 22px; height: 1px; background: var(--accent-soft); }
.ep-reframe-quote {
    font-family: var(--font-display);
    font-size: 1.4rem; line-height: 1.4; font-weight: 500;
    color: var(--ink);
    min-height: 3.9em;
    margin-bottom: 22px;
}
.ep-reframe-quote .ep-q-old { color: var(--text-soft); font-style: italic; }
.ep-reframe-quote .ep-q-new { color: var(--accent); }
.ep-reframe-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ep-reframe-toggle span {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 7px 16px; border-radius: 999px;
    color: var(--text-soft); transition: color 0.35s ease, background 0.35s ease;
    white-space: nowrap;
}
.ep-reframe-toggle .ep-t-old { color: var(--rosewood); background: #fff; box-shadow: var(--shadow-sm); }
.ep-reframe-card.is-healed .ep-t-old { color: var(--text-soft); background: transparent; box-shadow: none; }
.ep-reframe-card.is-healed .ep-t-new { color: #fff; background: var(--accent); box-shadow: var(--shadow-sm); }
.ep-reframe-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ep-reframe-hint { display: block; margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   5. WHAT WE NURTURE — soft pillowy grid
-------------------------------------------------------------------------- */
.ep-nurture { background: var(--surface); }
.ep-nurture .audience-grid { gap: 20px; }

/* --------------------------------------------------------------------------
   6. QUOTE + CTA (site's warm bg-dark)
-------------------------------------------------------------------------- */
.ep-quote .big-quote em { color: var(--sand); }
.ep-cta { border-top: 1px solid var(--line-soft); }
.ep-cta h2 em { color: var(--accent); }

/* --------------------------------------------------------------------------
   7. RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ep-weight-grid { gap: 48px; }
    .ep-reframe-grid { gap: 18px; }
}
@media (max-width: 900px) {
    .ep-hero { padding: 150px 0 76px; }
    .ep-weight-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .ep-weight-copy .eyebrow { justify-content: center; }
    .ep-weight-copy .lead, .ep-weight-copy p { max-width: 48ch; margin-left: auto; margin-right: auto; }
    .ep-weight-stage { max-width: 320px; }
    .ep-cycle-captions { grid-template-columns: 1fr; gap: 28px; max-width: 560px; }
    .ep-cap { padding: 0; }
    .ep-reframe-grid { grid-template-columns: 1fr; max-width: 520px; }
    .ep-act--weight, .ep-act--cycle { min-height: auto; padding: 90px 0; }
    .ep-act--reframe { padding: 90px 0; }
}
@media (max-width: 620px) {
    .ep-hero { padding: 132px 0 64px; }
    .ep-act--weight, .ep-act--cycle, .ep-act--reframe { padding: 76px 0; }
    .ep-embrace { width: 200px; height: 200px; margin-top: 38px; }
    .ep-embrace-outer { width: 148px; height: 148px; }
    .ep-embrace-inner { width: 92px; height: 92px; }
    .ep-embrace-heart { width: 34px; height: 34px; }
    .ep-weight-stage { max-width: 270px; }
    .ep-reframe-card { padding: 26px 22px 22px; }
    .ep-reframe-quote { font-size: 1.22rem; min-height: 0; }
    .ep-cycle-head { margin-bottom: 34px; }
    .ep-node-label { font-size: 29px; }
    .ep-cap h3 { font-size: 1.55rem; }
    .ep-cap p { font-size: 1.05rem; }
}
@media (max-width: 380px) {
    .ep-reframe-card { padding: 22px 18px 20px; }
    .ep-reframe-quote { font-size: 1.12rem; }
    .ep-reframe-toggle span { padding: 6px 12px; font-size: 0.74rem; }
}

/* --------------------------------------------------------------------------
   8. REDUCED MOTION — tender & static
-------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ep-embrace-outer, .ep-embrace-inner, .ep-embrace-heart, .ep-scroll-line { animation: none; }
}
