/* ── Resources V1 Page ─────────────────────────────────── */

/* Shared section base */
.res-section {
    padding: 6rem 2rem;
}

.res-section .res-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.res-eyebrow {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--stormy-teal, #2C6671);
    margin-bottom: 1rem;
}

.res-heading {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--black-navy, #1A1A2E);
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
}

/* Heading levels: eyebrow + .res-heading is level 1 (section title); .res-sub is level 2 (a part of a section) */
.res-section-title { margin-bottom: 2.5rem; }
.res-sub { display: flex; align-items: baseline; gap: 0.6rem; font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.25; color: var(--black-navy, #1A1A2E); margin: 0 0 0.5rem; }

.res-subhead {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(26, 26, 46, 0.6);
    margin: 0 0 3rem;
    max-width: 560px;
}

/* ── Hero ──────────────────────────────────────────────── */
.res-hero {
    background-color: var(--warm-white-light, #FAF8F4);
    padding: 8rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.res-hero .res-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.res-hero .res-eyebrow {
    margin-bottom: 1.5rem;
}

.res-hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.4rem, 4.6vw, 3.75rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--stormy-teal, #2C6671);
    margin: 0 0 1rem;
    text-shadow: none;
}

.res-hero-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(26, 26, 46, 0.65);
    max-width: 500px;
    margin: 0;
}

/* ── Book ──────────────────────────────────────────────── */
.res-book {
    background: var(--warm-white, #F5F2EC);
    padding: 6rem 2rem;
    border-top: 1px solid rgba(26,26,46,0.08);
}

.book-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 4rem;
    align-items: start;
}

.book-cover-col {
    flex-shrink: 0;
}

.book-cover-img {
    width: 100%;
    display: block;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.book-edition-note {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(26,26,46,0.45);
    margin-bottom: 0.75rem;
}

.book-get-copy {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black-navy, #1A1A2E);
    margin: 0 0 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.book-formats {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(26,26,46,0.6);
    margin: 0 0 2rem;
}

/* ── Book pill buttons ─────────────────────────────────── */
.book-available-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(26, 26, 46, 0.45);
    margin: 0 0 0.85rem;
}

.book-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.book-pill {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(26, 26, 46, 0.25);
    border-radius: 6px;
    color: var(--black-navy, #1A1A2E);
    background: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.18s, background 0.18s;
    white-space: nowrap;
}
.book-pill:hover {
    border-color: rgba(26, 26, 46, 0.55);
    background: var(--warm-white-light, #FAF8F4);
}

/* Guide row inside book section */
.book-guide-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 26, 46, 0.1);
}

.book-guide-thumb {
    width: 52px;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.book-guide-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(26, 26, 46, 0.5);
    margin: 0 0 0.2rem;
}

.book-guide-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rust, #C3703D);
    text-decoration: none;
    transition: opacity 0.18s;
}
.book-guide-link:hover { opacity: 0.75; }


.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

[data-stage="1"] { --sc: var(--twilight-indigo, #223554); }
[data-stage="2"] { --sc: #6E7656; }
[data-stage="3"] { --sc: var(--eggplant, #523759); }
[data-stage="4"] { --sc: var(--dark-wine, #721817); }

/* ── Hero doors ────────────────────────────────────────── */
.res-hero .res-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.75rem 4rem; align-items: end; }
.res-hero .res-eyebrow { margin-bottom: 1rem; }
.res-doors { display: grid; gap: 0.6rem; }
.res-door {
    position: relative; display: flex; flex-direction: column; gap: 0.35rem;
    padding: 0.85rem 3rem 0.85rem 1.2rem; border-radius: 10px; text-decoration: none;
    background: #FDFCF9; border: 1px solid rgba(26,26,46,0.1);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.res-door:hover { border-color: rgba(44,102,113,0.45); box-shadow: 0 10px 30px -12px rgba(44,102,113,0.35); transform: translateY(-2px); }
.res-door-k { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; color: var(--stormy-teal, #2C6671); }
.res-door-t { font-family: 'Open Sans', sans-serif; font-size: 0.82rem; line-height: 1.5; color: rgba(26,26,46,0.6); }
.res-door-arrow { position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--rust, #C3703D); transition: transform .25s; }
.res-door:hover .res-door-arrow { transform: translate(4px, -50%); }

.res-states { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0; list-style: none; padding: 0; margin: 0; grid-column: 1 / -1; font-family: 'Open Sans', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.res-states li { color: rgba(26,26,46,0.28); }
.res-states li.on { color: var(--stormy-teal, #2C6671); }
.res-states li + li::before { content: '→'; margin: 0 0.75rem; color: rgba(26,26,46,0.2); letter-spacing: 0; }

/* ── Resource card (shared) ────────────────────────────── */
.rc {
    display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem 1.4rem 1.25rem;
    background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-radius: 12px;
    text-decoration: none; color: inherit; min-width: 0;
    transition: border-color .2s, box-shadow .2s;
}
a.rc:hover { border-color: rgba(26,26,46,0.22); box-shadow: 0 8px 24px -14px rgba(26,26,46,0.35); }
.rc-thumb { margin: -1.4rem -1.4rem 0.6rem; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px 12px 0 0; }
.rc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.rc:hover .rc-thumb img { transform: scale(1.03); }
.rc-kind { font-family: 'Open Sans', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stormy-teal, #2C6671); }
.rc-title { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; line-height: 1.45; color: var(--black-navy, #1A1A2E); }
.rc-desc { font-family: 'Open Sans', sans-serif; font-size: 0.88rem; line-height: 1.6; color: rgba(26,26,46,0.58); }
.rc-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.15rem; }
.rc-tag { font-family: 'Open Sans', sans-serif; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; color: var(--sc, #2C6671); background: rgba(26,26,46,0.05); }
.rc-cta { margin-top: auto; padding-top: 0.5rem; font-family: 'Open Sans', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust, #C3703D); }
.rc-soon { background: transparent; border-style: dashed; }
.rc-soon .rc-title, .rc-soon .rc-desc { opacity: 0.6; }
.rc-soon .rc-cta { color: rgba(26,26,46,0.35); }

/* ── Start Here ────────────────────────────────────────── */
.res-start { background: var(--warm-white, #F5F2EC); }
.res-start { position: relative; overflow: hidden; }
.res-section.res-start { padding-top: 2.5rem; }
/* The Big Picture: intro copy beside a worked example */
.bp-intro { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.bp-copy p { font-family: 'Open Sans', sans-serif; font-size: 1.02rem; line-height: 1.75; color: rgba(26,26,46,0.72); margin: 0 0 1.1rem; }
.bp-copy p:last-child { margin-bottom: 0; }
.bp-example ul { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.bp-example li { font-family: 'Open Sans', sans-serif; font-size: 1.02rem; line-height: 1.75; color: rgba(26,26,46,0.72); }
.bp-example li[data-way="to-me"]      { --wc: var(--dark-wine, #721817); }
.bp-example li[data-way="by-me"]      { --wc: var(--stormy-teal, #2C6671); }
.bp-example li[data-way="through-me"] { --wc: #2E8E9C; }
.bp-example li::marker { color: var(--wc); }
.bp-example strong { font-weight: 700; color: var(--wc, var(--black-navy, #1A1A2E)); }

.bp-more { display: inline-block; margin-top: 0.4rem; padding: 0; background: none; border: 0; cursor: pointer; font-family: 'Open Sans', sans-serif; font-size: 1rem; font-weight: 500; color: var(--stormy-teal, #2C6671); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.bp-more:hover { color: var(--rust, #C3703D); }
.bp-modal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); padding: 2.75rem 3rem 2.5rem; border: 0; border-radius: 18px; background: var(--warm-white-light, #FAF8F4); color: var(--black-navy, #1A1A2E); box-shadow: 0 30px 80px -20px rgba(26,26,46,0.5); overflow-y: auto; }
.bp-modal::backdrop { background: rgba(26,26,46,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bp-modal[open] { animation: bp-modal-in .3s ease; }
@keyframes bp-modal-in { from { opacity: 0; transform: translateY(12px); } }
.bp-modal-title { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: 1.7rem; line-height: 1.25; margin: 0.6rem 0 0; }
.bp-modal-x { position: absolute; top: 1rem; right: 1.1rem; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.6rem; line-height: 1; color: rgba(26,26,46,0.55); transition: background .2s, color .2s; }
.bp-modal-x:hover { background: rgba(26,26,46,0.06); color: var(--black-navy, #1A1A2E); }
@media (max-width: 600px) { .bp-modal { padding: 2.5rem 1.4rem 1.75rem; } }
@media (prefers-reduced-motion: reduce) { .bp-modal[open] { animation: none; } }

/* Start Here: the four ways as cards, with a ball hopping across each shift between them */
.w4 { container-type: inline-size; margin-top: 1.5rem; }
.w4-list { list-style: none; margin: 0; padding: 104px 0 0; display: grid; grid-template-columns: minmax(0,1fr) 0 minmax(0,1fr) 0 minmax(0,1fr) 0 minmax(0,1fr); column-gap: 1.25rem; }
.w4-way { padding: 1.4rem 1.3rem 1.5rem; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-top: 3px solid var(--wc); border-radius: 12px; min-width: 0; }
.w4-way[data-way="to-me"]      { --wc: var(--dark-wine, #721817); }
.w4-way[data-way="by-me"]      { --wc: var(--stormy-teal, #2C6671); }
.w4-way[data-way="through-me"] { --wc: #2E8E9C; }
.w4-way[data-way="as-me"]      { --wc: var(--eggplant, #523759); }
.w4-way h3 { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: var(--wc); margin: 0; }
.w4-way p { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.95rem; color: rgba(26,26,46,0.65); margin: 0.35rem 0 0; }
.w4-shift { position: relative; }
.w4-hop { --hw: calc((100cqw - 6 * 1.25rem) / 4 + 2.5rem); position: absolute; bottom: 100%; left: calc(var(--hw) / -2); width: var(--hw); height: 104px; }
.w4-hop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.w4-hop path { fill: none; stroke: var(--rust, #C3703D); stroke-opacity: 0.35; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.w4-shift-w { position: absolute; left: 50%; top: -4px; transform: translateX(-50%); font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.2rem; color: var(--rust, #C3703D); white-space: nowrap; padding: 0 0.5rem; background: var(--warm-white, #F5F2EC); }
.w4-ball { position: absolute; left: 0; bottom: 0; width: 0; height: 0; opacity: 0; }
.w4-ball i { position: absolute; left: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F2B05A, var(--rust, #C3703D) 70%); box-shadow: 0 0 12px 2px rgba(242,176,90,0.55); }
.w4.in .w4-ball { animation: w4-x 7.5s linear infinite; animation-delay: calc(var(--k) * 2.5s); }
.w4.in .w4-ball i { animation: w4-y 7.5s infinite; animation-delay: calc(var(--k) * 2.5s); }
.w4.in .w4-shift-w { animation: w4-pop 7.5s ease-in-out infinite; animation-delay: calc(var(--k) * 2.5s); }
.w4.in .w4-way[data-way="by-me"]      { animation: w4-land 7.5s ease-out infinite 0s; }
.w4.in .w4-way[data-way="through-me"] { animation: w4-land 7.5s ease-out infinite 2.5s; }
.w4.in .w4-way[data-way="as-me"]      { animation: w4-land 7.5s ease-out infinite 5s; }
@keyframes w4-x { 0% { left: 0; opacity: 1; } 22% { left: 100%; opacity: 1; } 27%, 100% { left: 100%; opacity: 0; } }
@keyframes w4-y {
    0% { transform: translateY(0) scale(1.2, 0.8); animation-timing-function: ease-out; }
    11% { transform: translateY(-68px) scale(0.95, 1.05); animation-timing-function: ease-in; }
    22% { transform: translateY(0) scale(1.3, 0.7); animation-timing-function: ease-out; }
    24.5% { transform: translateY(-12px) scale(1); animation-timing-function: ease-in; }
    27%, 100% { transform: translateY(0) scale(1); } }
@keyframes w4-pop { 0%, 30%, 100% { transform: translateX(-50%) scale(1); } 9% { transform: translateX(-50%) translateY(-5px) scale(1.1); } 16% { transform: translateX(-50%) scale(1.04); } }
@keyframes w4-land { 0%, 21% { transform: none; } 23.5% { transform: translateY(4px); } 27% { transform: translateY(-2px); } 31%, 100% { transform: none; } }
@media (max-width: 760px) {
    .w4-list { grid-template-columns: 1fr; padding-top: 0; column-gap: 0; }
    .w4-hop { position: relative; left: auto; bottom: auto; width: auto; height: 3.4rem; }
    .w4-hop svg, .w4-ball { display: none; }
    .w4-shift-w { top: 50%; transform: translate(-50%, -50%); background: none; }
    .w4-shift-w::before { content: '↓ '; font-style: normal; font-size: 0.9rem; }
    @keyframes w4-pop { 0%, 30%, 100% { transform: translate(-50%, -50%) scale(1); } 9% { transform: translate(-50%, -60%) scale(1.1); } }
}
@media (prefers-reduced-motion: reduce) {
    .w4.in .w4-ball, .w4.in .w4-ball i, .w4.in .w4-shift-w, .w4.in .w4-way[data-way] { animation: none; }
}
.ways-foot { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 2.75rem; }
/* Inward button: Stormy Teal pill for entering a practice or guide (Rust stays the "act" button) */
.btn-inward { display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.6rem; border-radius: 999px; background: var(--stormy-teal, #2C6671); color: var(--warm-white, #F5F2EC); text-decoration: none; font-family: 'Open Sans', sans-serif; font-size: 0.95rem; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 24px -14px rgba(44,102,113,0.8); transition: background .2s, transform .2s, box-shadow .2s; }
.btn-inward:hover { background: #245863; transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(44,102,113,0.9); }
.btn-inward .k { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9FD9E2; }
.btn-inward .s { color: #F2B05A; transition: transform .2s; }
.btn-inward:hover .s { transform: translateX(3px); }
.trail { position: relative; margin-top: 1rem; }
.trail-line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.trail-line path { fill: none; stroke: var(--dry-sage, #A9B18F); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; vector-effect: non-scaling-stroke; stroke-dashoffset: 400; transition: stroke-dashoffset 2.4s ease; }
.trail.in .trail-line path { stroke-dashoffset: 0; }
.trail-steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.trail-step { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.trail-stone {
    --c: var(--dry-sage, #A9B18F);
    display: grid; place-items: center; width: 96px; height: 76px; margin-top: 22px;
    background: var(--c); color: #fff;
    border-radius: 58% 42% 55% 45% / 52% 58% 42% 48%;
    box-shadow: inset 0 -8px 0 rgba(26,26,46,0.12), 0 10px 22px -10px rgba(26,26,46,0.45);
    font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.9rem;
    opacity: 0; transform: translateY(18px) scale(.6) rotate(-8deg);
    transition: opacity .5s ease, transform .7s cubic-bezier(.34,1.56,.64,1);
    transition-delay: calc(var(--i) * 0.28s + 0.2s);
}
.trail-step:nth-child(2) .trail-stone { --c: var(--bright-teal, #4FB8C8); border-radius: 45% 55% 42% 58% / 58% 45% 55% 42%; }
.trail-step:nth-child(3) .trail-stone { --c: var(--rust, #C3703D); border-radius: 52% 48% 60% 40% / 45% 55% 45% 55%; }
.trail.in .trail-stone { opacity: 1; transform: none; }
.trail-step:hover .trail-stone { animation: trail-wobble .6s ease; }
@keyframes trail-wobble { 0%,100% { transform: none; } 25% { transform: translateY(-6px) rotate(-6deg); } 55% { transform: translateY(-2px) rotate(5deg); } 80% { transform: rotate(-2deg); } }
.trail-kicker { font-family: 'Open Sans', sans-serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust, #C3703D); margin-top: 1.4rem; }
.trail-kicker + .trail-title { margin-top: 0.3rem; }
.trail-title { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: 1.3rem; line-height: 1.3; color: var(--black-navy, #1A1A2E); margin: 1.4rem 0 0.4rem; }
.trail-text { font-family: 'Open Sans', sans-serif; font-size: 0.92rem; line-height: 1.6; color: rgba(26,26,46,0.6); margin: 0 0 1rem; max-width: 30ch; }
.trail-res { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; width: 100%; max-width: 300px; }
.trail-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.85rem; border-radius: 999px; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.1); text-decoration: none; text-align: left; font-family: 'Open Sans', sans-serif; font-size: 0.86rem; color: var(--black-navy, #1A1A2E); transition: border-color .2s, transform .2s; }
a.trail-link:hover { border-color: rgba(26,26,46,0.3); transform: translateX(3px); }
.trail-link .k { flex: none; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stormy-teal, #2C6671); }
.trail-link .s { margin-left: auto; flex: none; font-size: 0.7rem; font-weight: 600; color: var(--rust, #C3703D); }
.trail-link.soon { border-style: dashed; background: transparent; color: rgba(26,26,46,0.5); }
.trail-link.soon .s { color: rgba(26,26,46,0.35); text-transform: uppercase; letter-spacing: 0.08em; }
.trail-onward { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; margin: 3rem auto 0; width: fit-content; font-family: 'Open Sans', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stormy-teal, #2C6671); text-decoration: none; }
.trail-onward-arrow { font-size: 1.1rem; letter-spacing: 0; color: var(--rust, #C3703D); animation: trail-nudge 2s ease-in-out infinite; }
@keyframes trail-nudge { 50% { transform: translateY(4px); } }
.trail-onward-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust, #C3703D); box-shadow: 0 0 0 0 rgba(195,112,61,0.5); animation: trail-pulse 2.2s ease-out infinite; }
@keyframes trail-pulse { to { box-shadow: 0 0 0 12px rgba(195,112,61,0); } }

/* ── The Path ──────────────────────────────────────────── */
.res-path { background: var(--sage-mist, #EDEFE4); }   /* To Me → By Me: one pale sage section from Groundwork through the Path */
/* Groundwork: content on the line, context above and below it */
.gw { margin-bottom: 5rem; }
.gw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.gw-card { display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.7rem; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-top: 3px solid var(--stormy-teal, #2C6671); border-radius: 12px; }
.gw-card h3 { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.35rem; line-height: 1.25; color: var(--stormy-teal, #2C6671); margin: 0 0 0.75rem; }
.gw-card p { font-family: 'Open Sans', sans-serif; font-size: 0.95rem; line-height: 1.65; color: rgba(26,26,46,0.65); margin: 0 0 1.25rem; }
.gw-card .trail-res { max-width: none; margin-top: auto; }
.cc-key { margin: 0 0 1.25rem; display: grid; gap: 0.75rem; }
.cc-key div { display: grid; gap: 0.15rem; padding-left: 0.9rem; border-left: 3px solid var(--rust, #C3703D); }
.cc-key dt { font-family: 'Open Sans', sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--kc); }
.cc-key div { --kc: #8A4C27; border-left-color: var(--kb, var(--rust, #C3703D)); }
.cc-key div[data-k="context"], .cc-key div[data-k="above"] { --kc: var(--stormy-teal, #2C6671); --kb: var(--stormy-teal, #2C6671); }
.cc-key div[data-k="below"] { --kc: var(--dark-wine, #721817); --kb: var(--dark-wine, #721817); }
.cc-key dd { margin: 0; font-family: 'Libre Baskerville', serif; font-size: 1.05rem; line-height: 1.45; color: var(--black-navy, #1A1A2E); }
@media (max-width: 760px) { .gw-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .gw { margin-bottom: 3.5rem; } }

/* Try It: one moment on the line, arrows fork to two light context cards, and a ball that keeps choosing: it opens into light above the line and tightens below it */
.ty { margin-top: 4rem; }
.ty-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: 1.3rem; line-height: 1.3; color: var(--black-navy, #1A1A2E); margin: 0; }
.ty-tag { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--rust, #C3703D); color: #FDFCF9; font-family: 'Open Sans', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ty-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 4.4rem; }
.ty-pills button { padding: 0.55rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--stormy-teal, #2C6671); background: var(--stormy-teal, #2C6671); color: #FDFCF9; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.ty-pills button:hover { background: #245863; border-color: #245863; }
/* Active example: a deeper shade of Rust so the white text clears 4.5:1 (brand Rust #C3703D only reaches 3.6:1) */
.ty-pills button[aria-pressed="true"] { background: #A85A2C; border-color: #A85A2C; color: #FDFCF9; }
.ty-stage { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) 110px minmax(0, 1.7fr); align-items: center; }
.ty-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--rust, #C3703D); }
.ty-line span { position: absolute; right: 0; top: 0; transform: translateY(-50%); padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--warm-white-light, #FAF8F4); border: 1.5px solid var(--rust, #C3703D); font-family: 'Open Sans', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8A4C27; }
.ty-moment { position: relative; z-index: 1; }
.ty-card { padding: 1.2rem 1.35rem 1.3rem; border-radius: 14px; background: #FDFCF9; border: 1.5px solid var(--rust, #C3703D); box-shadow: 0 12px 26px -16px rgba(26,26,46,0.45); }
.ty-card span { font-family: 'Open Sans', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8A4C27; }
.ty-card p { font-family: 'Libre Baskerville', serif; font-size: 1.15rem; line-height: 1.45; color: var(--black-navy, #1A1A2E); margin: 0.5rem 0 0; }
.ty-stage.draw .ty-card { animation: ty-card-in .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes ty-card-in { from { opacity: 0; transform: scale(.95); } }
/* The fork: two dashed arrows that draw themselves outward on each new moment */
.ty-fork { position: relative; align-self: stretch; }
.ty-fork svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ty-fork path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ty-fork path.up { stroke: var(--stormy-teal, #2C6671); }
.ty-fork path.down { stroke: var(--dark-wine, #721817); }
.ty-fork path:not(.head) { stroke-dasharray: 3 6; }
.ty-stage.draw .ty-fork svg { animation: ty-draw .6s ease-out; }
@keyframes ty-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ty-ball { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F2B05A, var(--rust, #C3703D) 70%); box-shadow: 0 0 12px 2px rgba(242,176,90,0.55); opacity: 0; transition: opacity .3s; z-index: 2; }
.ty-stage.ball-on .ty-ball { opacity: 1; }
/* The two contexts */
.ty-ctx { display: grid; grid-template-rows: 1fr 1fr; gap: 2.75rem; }
/* "The context" labels the right column, mirroring "The content" on the card at left */
.ty-ctx { position: relative; }
.ty-ctx-k { position: absolute; left: 0; bottom: 100%; margin-bottom: 1.25rem; display: flex; align-items: baseline; gap: 0.6rem; white-space: nowrap; font-family: 'Open Sans', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stormy-teal, #2C6671); }
.ty-zone { --wc: var(--stormy-teal, #2C6671); position: relative; overflow: hidden; padding: 1.15rem 5.75rem 1.3rem 1.4rem; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-top: 3px solid var(--wc); border-radius: 12px; }
.ty-below { --wc: var(--dark-wine, #721817); }
.ty-zone > :not(.ty-lat) { position: relative; z-index: 1; }
/* Hoberman lattice behind the text: airy teal with gold joints when open, dense wine knot when folded */
.ty-lat { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ty-lat-s { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ty-above .ty-lat-s { stroke: var(--stormy-teal, #2C6671); }
.ty-above .ty-lat-j { display: none; }   /* no joints above: nothing competing with the words */
.ty-below .ty-lat-s { stroke: var(--dark-wine, #721817); }
.ty-below .ty-lat-j circle { fill: var(--dark-wine, #721817); fill-opacity: 0.85; }
.ty-zone.hit { animation: ty-hit .45s ease-out; }
@keyframes ty-hit { 30% { transform: translateY(3px); } 65% { transform: translateY(-2px); } }
.ty-k { display: block; margin-bottom: 0.75rem; font-family: 'Libre Baskerville', serif; font-size: 1.1rem; color: var(--wc); }
.ty-rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; }
/* Each pair: label with the sentence directly under it */
.ty-rows div { display: grid; align-content: start; gap: 0.2rem; }
.ty-rows dt { font-family: 'Open Sans', sans-serif; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wc); }
.ty-rows dd { margin: 0; font-family: 'Open Sans', sans-serif; font-size: 0.95rem; line-height: 1.45; color: var(--black-navy, #1A1A2E); }
.ty-stage.draw .ty-rows div { animation: ty-pop .4s cubic-bezier(.3,1.5,.5,1) both; animation-delay: .45s; }
@keyframes ty-pop { from { opacity: 0; transform: translateY(6px); } }
/* Before an example is picked: just the two headings and their lattices, at the same height the filled cards use */
.ty-stage.empty .ty-zone { min-height: 10.5rem; }
.ty-stage.empty .ty-card p { font-style: italic; color: #5A5A66; }
/* The Above/Below descriptions show only while no example is picked */
.ty-desc { display: none; margin: 0; font-family: 'Libre Baskerville', serif; font-size: 1.05rem; line-height: 1.45; color: var(--black-navy, #1A1A2E); }
.ty-stage.empty .ty-desc { display: block; }
/* Mirrors "What's happening" on the content card: shown beside THE CONTEXT only before an example is picked */
.ty-ctx-k em { display: none; font-family: 'Libre Baskerville', serif; font-style: italic; font-weight: 400; font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: #5A5A66; }
.ty-stage.empty .ty-ctx-k em { display: inline; }
.ty-cap { transition: opacity .4s ease; }
.ty-stage.empty + .ty-cap { opacity: 0; }   /* the caption appears once an example is showing */
.ty-cap { margin: 1.4rem 0 0; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.02rem; color: var(--black-navy, #1A1A2E); }
@media (max-width: 860px) {
    .ty-stage { grid-template-columns: 1fr; gap: 0; }
    .ty-fork, .ty-line span { display: none; }
    .ty-ctx { display: contents; }
    .ty-ctx-k { position: static; order: 0; margin: 0 0 0.6rem; }
    .ty-above { order: 1; } .ty-moment { order: 2; margin: 2.2rem 0; } .ty-below { order: 3; }
    .ty-line { top: 50%; }
    .ty-moment::before, .ty-moment::after { position: absolute; left: 50%; transform: translateX(-50%); font-size: 1.1rem; line-height: 1; }
    .ty-moment::before { content: '↑'; top: -1.7rem; color: var(--stormy-teal, #2C6671); }
    .ty-moment::after { content: '↓'; bottom: -1.7rem; color: var(--dark-wine, #721817); }
    .ty-rows { grid-template-columns: 1fr; }
    .ty-heading { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ty-stage.draw .ty-card, .ty-stage.draw .ty-fork svg, .ty-stage.draw .ty-rows div, .ty-zone.hit { animation: none; }
    .ty-ball { display: none; }
}

.path-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.path-head .res-subhead { margin-bottom: 2.25rem; }
.path-prog { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 2.4rem; }
.path-track { width: 140px; height: 4px; border-radius: 4px; background: rgba(26,26,46,0.1); overflow: hidden; }
.path-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--stormy-teal, #2C6671), var(--bright-teal, #4FB8C8)); transition: width .6s; }
#pathCount { font-family: 'Open Sans', sans-serif; font-size: 0.85rem; color: rgba(26,26,46,0.55); font-variant-numeric: tabular-nums; }

.path-frame { max-width: 880px; margin: 0 auto; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(26,26,46,0.06), 0 22px 60px -22px rgba(26,26,46,0.4); }
.path-scene { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1024 / 1150; overflow: hidden; border-radius: 8px; background: #cfc7b6; }
.path-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.path-title { position: absolute; left: 7%; top: 7.5%; width: 54%; pointer-events: none; }
.path-title h3 { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: clamp(1.35rem, 5.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--black-navy, #1A1A2E); margin: 0; text-wrap: balance; text-shadow: 0 1px 18px rgba(255,255,255,0.55); }
.path-title h3 em { font-style: italic; color: var(--stormy-teal, #2C6671); }
.path-title p { font-family: 'Open Sans', sans-serif; font-size: clamp(0.7rem, 1.6vw, 1.05rem); letter-spacing: 0.08em; color: rgba(26,26,46,0.7); margin: 0.6em 0 0; }
.path-spot { position: absolute; transform: translate(-50%, -50%); border: 0; padding: 0; background: transparent; border-radius: 50%; cursor: pointer; transition: box-shadow .3s, background .4s; }
.path-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(9px, 2.45cqw, 25px); letter-spacing: -0.02em; color: #1E5059; mix-blend-mode: multiply; pointer-events: none; }
.path-spot.lit .path-num { color: #17444C; }
.path-boulder { position: absolute; transform: translate(-50%, -50%); padding: 0.6em 0; border: 0; border-radius: 40%; background: transparent; cursor: pointer; text-align: center; white-space: nowrap; font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(8px, 2.5cqw, 25px); line-height: 1.1; letter-spacing: -0.04em; word-spacing: -0.06em; color: #1E5059; mix-blend-mode: multiply; }
.path-spot::after { content: ''; position: absolute; inset: -8px; }
.path-boulder:hover, .path-boulder:focus-visible { background: radial-gradient(ellipse at center, rgba(255,240,200,0.55), transparent 70%); outline: none; }
.path-boulder:focus-visible span { text-decoration: underline; text-decoration-color: var(--rust, #C3703D); text-underline-offset: 3px; }
/* A stage's stones light up while its boulder is hovered */
.path-spot.hl { background: radial-gradient(ellipse at center, rgba(255,240,190,.95), rgba(255,214,120,.75) 55%, rgba(255,190,80,.15) 80%); box-shadow: 0 0 0 2px rgba(255,214,120,.95), 0 0 16px 6px rgba(255,196,84,.9), 0 0 44px 14px rgba(255,176,60,.5); }
.path-spot.hl .path-num { color: #17444C; }
/* Each stone's word floats above it on hover, focus, or when its stage is lit */
.path-word { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); padding: 0.25em 0.7em; border-radius: 999px; background: rgba(253,252,249,0.96); box-shadow: 0 6px 14px -8px rgba(26,26,46,0.5); font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(9px, 1.5cqw, 15px); color: var(--black-navy, #1A1A2E); white-space: nowrap; opacity: 0; pointer-events: none; z-index: 3; transition: opacity .2s, transform .2s; }
.path-spot:hover .path-word, .path-spot:focus-visible .path-word, .path-spot.hl .path-word { opacity: 1; transform: translate(-50%, 0); }
/* Lower stones stack above higher ones so each word sits over the next stone up */
.path-spot.hl { z-index: var(--z); }
.path-spot:hover, .path-spot:focus-visible { z-index: 40; }
.path-spot:hover { box-shadow: 0 0 0 3px rgba(255,255,255,0.9); }
.path-spot:focus-visible { outline: 3px solid var(--rust, #C3703D); outline-offset: 4px; }
.path-spot.lit { background: radial-gradient(ellipse at center, rgba(255,240,190,.95), rgba(255,214,120,.75) 55%, rgba(255,190,80,.15) 80%); box-shadow: 0 0 0 2px rgba(255,214,120,.95), 0 0 16px 6px rgba(255,196,84,.9), 0 0 44px 14px rgba(255,176,60,.5); }
.path-spot.sug::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #fff; animation: path-ripple 2.2s ease-out infinite; }
.path-spot.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--rust, #C3703D); }
.path-spot.lit.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--rust, #C3703D), 0 0 30px 10px rgba(255,196,84,.85); }
@keyframes path-ripple { from { transform: scale(.95); opacity: .95; } to { transform: scale(1.45); opacity: 0; } }
.path-here { position: absolute; transform: translate(-50%, -100%); pointer-events: none; display: grid; justify-items: center; transition: left .8s ease, top .8s ease, opacity .5s; }
.path-here span { font-family: 'Open Sans', sans-serif; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; background: var(--black-navy, #1A1A2E); color: #F5F2EC; padding: 0.25rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.path-here i { width: 2px; height: 12px; background: var(--black-navy, #1A1A2E); }

.path-preview { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: end; max-width: 880px; margin: 0 auto; padding: 2.25rem 0 2.5rem; border-bottom: 1px solid rgba(26,26,46,0.1); }
.pp-eb { display: block; font-family: 'Open Sans', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc, #2C6671); }
.pp-cn { display: block; font-family: 'Open Sans', sans-serif; font-size: 1rem; margin-top: 0.4rem; color: rgba(26,26,46,0.7); }
.pp-lit { display: inline-block; margin-left: 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: #FFF0C8; color: #6B4508; padding: 0.15rem 0.55rem; border-radius: 999px; vertical-align: middle; }
.pp-title { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--black-navy, #1A1A2E); margin: 0.3rem 0 0.75rem; }
.pp-shift { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; font-family: 'Open Sans', sans-serif; font-size: 0.95rem; line-height: 1.6; color: rgba(26,26,46,0.6); margin: 0; max-width: 62ch; }
.pp-shift b { color: var(--black-navy, #1A1A2E); }
.pp-acts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.pp-cta, .pp-alt { font-family: 'Open Sans', sans-serif; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; border-radius: 6px; padding: 0.75rem 1.3rem; cursor: pointer; border: 0; }
.pp-cta { background: var(--rust, #C3703D); color: #fff; }
.pp-cta:hover { background: #a85e31; }
.pp-alt { background: transparent; color: var(--black-navy, #1A1A2E); box-shadow: inset 0 0 0 1.5px rgba(26,26,46,0.6); }
a.pp-alt { display: inline-flex; align-items: center; text-decoration: none; }
.ls-more { justify-self: start; align-self: flex-start; width: fit-content; }
.pp-step { display: flex; gap: 0.5rem; }
.pp-step button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--black-navy, #1A1A2E); background: transparent; color: var(--black-navy, #1A1A2E); font-size: 1.05rem; cursor: pointer; }
.pp-step button[disabled] { opacity: .25; cursor: default; }

.path-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; max-width: 880px; margin: 2.5rem auto 0; }
.ps-k { display: block; font-family: 'Open Sans', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc); }
.ps-name { display: block; font-family: 'Libre Baskerville', serif; font-size: 1rem; line-height: 1.35; color: var(--black-navy, #1A1A2E); margin: 0.3rem 0 0.75rem; min-height: 2.7em; }
.ps ul { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--sc); }
.ps li { border-bottom: 1px solid rgba(26,26,46,0.08); }
.ps a { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0; background: none; border: 0; text-align: left; cursor: pointer; font-family: 'Open Sans', sans-serif; font-size: 0.88rem; color: var(--black-navy, #1A1A2E); }
.ps a:hover { color: var(--sc); }
.ps-n { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 600; background: rgba(26,26,46,0.06); color: rgba(26,26,46,0.6); transition: background .3s, box-shadow .3s; }
.ps a.lit .ps-n { background: #FFD27A; color: var(--black-navy, #1A1A2E); box-shadow: 0 0 10px rgba(255,190,80,0.7); }
.ps a.next .ps-n { box-shadow: 0 0 0 2px var(--rust, #C3703D); }
.path-foot { max-width: 880px; margin: 2rem auto 0; font-family: 'Open Sans', sans-serif; font-size: 0.82rem; color: rgba(26,26,46,0.5); }
.path-foot button { background: none; border: 0; padding: 0; font: inherit; color: var(--black-navy, #1A1A2E); text-decoration: underline; cursor: pointer; }

/* ── The Stacks ────────────────────────────────────────── */
.res-stacks { background: var(--warm-white, #F5F2EC); border-top: 1px solid rgba(26,26,46,0.08); }
.stacks-filters { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stacks-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stacks-chips button { font-family: 'Open Sans', sans-serif; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid rgba(26,26,46,0.15); background: #FDFCF9; color: var(--sc, rgba(26,26,46,0.7)); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.stacks-chips button[aria-pressed="true"] { background: var(--sc, var(--black-navy, #1A1A2E)); border-color: var(--sc, var(--black-navy, #1A1A2E)); color: #fff; }
.stacks-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.stacks-tools select, .stacks-tools input { font-family: 'Open Sans', sans-serif; font-size: 0.88rem; color: var(--black-navy, #1A1A2E); background: #FDFCF9; border: 1px solid rgba(26,26,46,0.15); border-radius: 8px; padding: 0.55rem 0.8rem; }
.stacks-tools input { width: 220px; }
.stacks-count { font-family: 'Open Sans', sans-serif; font-size: 0.82rem; color: rgba(26,26,46,0.5); margin: 1.5rem 0 1rem; min-height: 1.2em; }
.stacks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.stacks-empty { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; font-family: 'Open Sans', sans-serif; color: rgba(26,26,46,0.55); }
.stacks-empty button { margin-top: 0.75rem; background: none; border: 0; font: inherit; font-weight: 600; color: var(--stormy-teal, #2C6671); text-decoration: underline; cursor: pointer; }

/* ── Next book ─────────────────────────────────────────── */
.book-next { margin-top: 3.5rem; padding: 1.75rem 2rem; border-radius: 12px; border: 1px dashed rgba(26,26,46,0.22); max-width: 560px; }
.book-next-k { font-family: 'Open Sans', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust, #C3703D); }
.book-next-t { font-family: 'Libre Baskerville', serif; font-size: 1.5rem; color: var(--black-navy, #1A1A2E); margin: 0.4rem 0 0.3rem; }
.book-next-d { font-family: 'Open Sans', sans-serif; font-size: 0.92rem; line-height: 1.6; color: rgba(26,26,46,0.6); margin: 0; }

/* ── Through Me ────────────────────────────────────────── */
.res-through { position: relative; overflow: hidden; background: var(--black-navy, #1A1A2E); padding: 8rem 2rem; text-align: center; }
.through-glow { position: absolute; inset: -20% -10%; pointer-events: none; background: radial-gradient(ellipse 50% 45% at 50% 55%, rgba(82,55,89,0.75), transparent 70%), radial-gradient(ellipse 30% 30% at 50% 45%, rgba(79,184,200,0.18), transparent 70%); animation: through-breathe 9s ease-in-out infinite; }
@keyframes through-breathe { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.through-inner { position: relative; max-width: 1100px !important; }
.through-inner > .through-heading, .through-inner > .through-text { max-width: 640px; margin-left: auto; margin-right: auto; }
.res-through .res-eyebrow { color: var(--bright-teal, #4FB8C8); }
.through-heading em { font-style: italic; color: var(--bright-teal, #4FB8C8); }
.through-heading { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.25rem); text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; color: #F5F2EC; margin: 0 0 1.5rem; }
.through-text { font-family: 'Open Sans', sans-serif; font-size: 1.05rem; line-height: 1.8; color: rgba(245,242,236,0.72); margin: 0 auto 1rem; }
.through-form { display: flex; gap: 0.5rem; max-width: 460px; margin: 2.25rem auto 0; }
.through-form input { flex: 1; min-width: 0; font-family: 'Open Sans', sans-serif; font-size: 0.95rem; padding: 0.85rem 1rem; border-radius: 8px; border: 1px solid rgba(245,242,236,0.25); background: rgba(245,242,236,0.06); color: #F5F2EC; }
.through-form input::placeholder { color: rgba(245,242,236,0.45); }
.through-form button { font-family: 'Open Sans', sans-serif; font-size: 0.88rem; font-weight: 600; padding: 0.85rem 1.25rem; border-radius: 8px; border: 0; background: var(--rust, #C3703D); color: #fff; cursor: pointer; white-space: nowrap; }
.through-form button:hover { background: #a85e31; }

/* ── Lesson sheet ──────────────────────────────────────── */
.lesson-sheet[hidden] { display: none; }
.lesson-sheet { position: fixed; inset: 0; z-index: 10003; display: flex; justify-content: center; align-items: flex-end; background: rgba(26,26,46,0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.lesson-panel { width: 100%; max-width: 760px; max-height: 92%; overflow: auto; background: var(--warm-white, #F5F2EC); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 50px rgba(0,0,0,0.3); animation: lesson-rise .35s ease; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
@keyframes lesson-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.lesson-in { padding: 1.5rem 1.25rem 0; display: grid; gap: 1.4rem; font-family: 'Open Sans', sans-serif; color: var(--black-navy, #1A1A2E); }
/* Commitment pages (commitments/<id>.html, built by tools/build_commitments.py) */
.cm-body { padding-top: 3rem; }
/* The commitment itself, above and below the line, word for word from The 15 Commitments field guide */
.cm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cm-pair > div { padding: 1.35rem 1.5rem 1.5rem; border-radius: 12px; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-top: 3px solid var(--wc); }
.cm-pair .above { --wc: var(--stormy-teal, #2C6671); }
.cm-pair .below { --wc: var(--dark-wine, #721817); }
.cm-pair small { display: block; margin-bottom: 0.6rem; font-family: 'Open Sans', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wc); }
.cm-pair p { margin: 0; font-family: 'Libre Baskerville', serif; font-size: 1.1rem; line-height: 1.6; color: var(--black-navy, #1A1A2E); }
.cm-src { margin: 0.75rem 0 3rem; font-family: 'Open Sans', sans-serif; font-size: 0.82rem; color: #5A5A66; }
.cm-src a { color: var(--stormy-teal, #2C6671); }
@media (max-width: 760px) { .cm-pair { grid-template-columns: 1fr; } }
.cm-lesson { display: grid; gap: 2rem; max-width: 760px; margin-bottom: 4rem; }
.cm-lesson p { margin: 0; font-family: 'Open Sans', sans-serif; font-size: 1.05rem; line-height: 1.75; color: rgba(26,26,46,0.8); }
.cm-practice { padding: 1.4rem 1.5rem; border-radius: 12px; background: #FDFCF9; border-left: 3px solid var(--rust, #C3703D); }
.cm-res-h { margin-bottom: 1.5rem; }
.cm-empty { font-family: 'Libre Baskerville', serif; font-style: italic; color: #5A5A66; margin: 0 0 3rem; }
.cm-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 4rem 0 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(26,26,46,0.12); }
.cm-step { display: grid; gap: 0.2rem; text-decoration: none; font-family: 'Libre Baskerville', serif; font-size: 1.15rem; color: var(--black-navy, #1A1A2E); transition: color .2s; }
.cm-step small { font-family: 'Open Sans', sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #5A5A66; }
.cm-step.next { text-align: right; }
.cm-step:hover { color: var(--stormy-teal, #2C6671); }

.ls-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ls-back { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Open Sans', sans-serif; font-size: 0.88rem; background: #FDFCF9; color: var(--black-navy, #1A1A2E); border: 1px solid rgba(26,26,46,0.12); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; }
.ls-k { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc, #2C6671); }
.ls-title { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.1; margin: 0.3rem 0 0; }
.ls-shift { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; }
.ls-shift > div { border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.95rem; line-height: 1.55; min-width: 0; }
.ls-shift .from { background: rgba(26,26,46,0.06); }
.ls-shift .to { background: rgba(44,102,113,0.1); }
.ls-shift small { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(26,26,46,0.55); margin-bottom: 0.25rem; }
.ls-shift .arrow { display: flex; align-items: center; font-family: 'Libre Baskerville', serif; font-size: 1.5rem; color: var(--stormy-teal, #2C6671); padding: 0; }
.lesson-in h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(26,26,46,0.5); margin: 0 0 0.4rem; }
.lesson-in section p { margin: 0; font-size: 1rem; line-height: 1.7; max-width: 62ch; color: var(--black-navy, #1A1A2E); }
.ls-practice { background: #FDFCF9; border-radius: 12px; padding: 1rem 1.1rem; }
.ls-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.ls-res .rc { padding: 1rem; }
.ls-light { display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left; font-family: 'Open Sans', sans-serif; font-size: 1rem; font-weight: 500; background: #fff; color: var(--black-navy, #1A1A2E); border: 2px solid rgba(26,26,46,0.12); border-radius: 12px; padding: 0.9rem 1.1rem; cursor: pointer; }
.ls-light .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(26,26,46,0.25); display: grid; place-items: center; color: transparent; }
.ls-light[aria-pressed="true"] { background: #FFF3CF; border-color: #E3A13A; }
.ls-light[aria-pressed="true"] .dot { background: #E3A13A; border-color: #E3A13A; color: #fff; }
.ls-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; }

/* ── Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .path-spot.sug::before, .through-glow, .lesson-panel, .trail-onward-dot, .trail-onward-arrow, .trail-step:hover .trail-stone { animation: none; }
    .trail-stone, .trail-line path { transition: none; }
    .path-here { transition: none; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (min-width: 800px) {
    .lesson-sheet { align-items: center; }
    .lesson-panel { border-radius: 16px; max-height: 88%; }
    .lesson-in { padding: 2rem 2.5rem 0; }
}

@media (max-width: 900px) {
    .book-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .stacks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .path-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .res-section { padding: 4.5rem 1.25rem; }
    .res-hero { padding: 7rem 1.25rem 3rem; }
    .res-through { padding: 5.5rem 1.25rem; }
    .res-hero .res-inner { grid-template-columns: 1fr; }
    .stacks-grid, .ls-res { grid-template-columns: 1fr; }
    .trail-line { display: none; }
    .trail-steps { grid-template-columns: 1fr; gap: 0; }
    .trail-step { display: grid; grid-template-columns: 72px 1fr; column-gap: 1.1rem; text-align: left; align-items: start; padding-bottom: 2.25rem; position: relative; }
    .trail-step:not(:last-child)::before { content: ''; position: absolute; left: 35px; top: 70px; bottom: 6px; border-left: 3px dotted var(--dry-sage, #A9B18F); }
    .trail-stone { grid-row: 1 / span 5; width: 72px; height: 58px; margin-top: 0; font-size: 1.5rem; }
    .trail-title { margin-top: 0.4rem; }
    .trail-res { max-width: none; }
    .path-frame { padding: 6px; border-radius: 10px; }
    .path-preview { grid-template-columns: 1fr; }
    .path-stages { grid-template-columns: 1fr; gap: 1.75rem; }
    .ps-name { min-height: 0; }
    .path-here span { font-size: 0.56rem; padding: 0.2rem 0.45rem; }
    .path-here i { height: 7px; }
    .stacks-tools, .stacks-tools label, .stacks-tools select, .stacks-tools input { width: 100%; }
    .through-form { flex-direction: column; }
    .ls-shift { grid-template-columns: 1fr; }
    .ls-shift .arrow { justify-content: center; transform: rotate(90deg); height: 1.25rem; }
    .book-pill-row { gap: 0.5rem; }
}

/* ── Tahoe layer ───────────────────────────────────────── */
:root {
    --ridge-back: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 90%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,90 L0,55.1 L16,53.6 L32,52.6 L48,52.1 L64,52.0 L80,52.3 L96,52.7 L112,53.2 L128,53.6 L144,53.9 L160,54.0 L176,53.9 L192,53.6 L208,53.3 L224,53.2 L240,53.2 L256,53.5 L272,54.1 L288,55.1 L304,56.4 L320,57.9 L336,59.5 L352,61.0 L368,62.3 L384,63.2 L400,63.8 L416,63.8 L432,63.5 L448,62.7 L464,61.8 L480,60.7 L496,59.8 L512,59.1 L528,58.7 L544,58.6 L560,59.0 L576,59.7 L592,60.6 L608,61.6 L624,62.7 L640,63.6 L656,64.4 L672,64.9 L688,65.2 L704,65.4 L720,65.5 L736,65.8 L752,66.2 L768,67.0 L784,68.1 L800,69.7 L816,71.6 L832,73.8 L848,76.1 L864,78.4 L880,80.5 L896,82.3 L912,83.6 L928,84.4 L944,84.6 L960,84.4 L976,83.8 L992,83.0 L1008,82.0 L1024,81.0 L1040,80.2 L1056,79.5 L1072,79.0 L1088,78.7 L1104,78.4 L1120,78.0 L1136,77.4 L1152,76.6 L1168,75.5 L1184,74.0 L1200,72.2 L1216,70.1 L1232,67.9 L1248,65.8 L1264,63.8 L1280,62.2 L1296,61.0 L1312,60.3 L1328,60.1 L1344,60.3 L1360,60.9 L1376,61.6 L1392,62.4 L1408,63.0 L1424,63.5 L1440,63.6 L1440,90 Z M27.8,55.3 L34.2,41.4 L30.8,41.4 L35.8,28.2 L38.4,14.3 L41.1,28.2 L46.1,41.4 L42.7,41.4 L49.1,55.3 Z M99.2,56.2 L106.7,39.9 L102.7,39.9 L108.6,24.5 L111.7,8.2 L114.9,24.5 L120.7,39.9 L116.7,39.9 L124.2,56.2 Z M221.1,56.1 L226.9,43.3 L223.8,43.3 L228.4,31.3 L230.9,18.4 L233.3,31.3 L237.9,43.3 L234.8,43.3 L240.7,56.1 Z M336.6,63.6 L343.5,48.6 L339.8,48.6 L345.2,34.4 L348.1,19.4 L350.9,34.4 L356.3,48.6 L352.7,48.6 L359.6,63.6 Z M342.2,64.1 L348.8,49.8 L345.3,49.8 L350.4,36.3 L353.2,22.0 L355.9,36.3 L361.0,49.8 L357.5,49.8 L364.1,64.1 Z M376.9,66.2 L380.6,58.1 L378.6,58.1 L381.5,50.4 L383.1,42.3 L384.7,50.4 L387.6,58.1 L385.6,58.1 L389.3,66.2 Z M526.3,61.6 L533.3,46.4 L529.6,46.4 L535.0,32.1 L537.9,16.8 L540.8,32.1 L546.3,46.4 L542.6,46.4 L549.6,61.6 Z M668.0,68.0 L674.2,54.5 L670.9,54.5 L675.8,41.8 L678.4,28.3 L681.0,41.8 L685.8,54.5 L682.5,54.5 L688.7,68.0 Z M678.8,68.2 L683.7,57.6 L681.1,57.6 L684.9,47.7 L686.9,37.1 L688.9,47.7 L692.7,57.6 L690.1,57.6 L695.0,68.2 Z M776.0,71.0 L779.5,63.2 L777.6,63.2 L780.4,55.8 L781.9,48.0 L783.4,55.8 L786.2,63.2 L784.3,63.2 L787.9,71.0 Z M853.0,81.6 L860.5,65.3 L856.5,65.3 L862.4,50.0 L865.5,33.7 L868.6,50.0 L874.5,65.3 L870.5,65.3 L878.0,81.6 Z M886.6,85.3 L892.2,73.0 L889.2,73.0 L893.7,61.4 L896.0,49.1 L898.4,61.4 L902.8,73.0 L899.8,73.0 L905.4,85.3 Z M903.4,86.8 L910.2,72.0 L906.5,72.0 L911.9,58.0 L914.7,43.2 L917.5,58.0 L922.9,72.0 L919.2,72.0 L926.0,86.8 Z M1178.5,76.2 L1186.0,59.8 L1182.0,59.8 L1187.9,44.3 L1191.0,27.9 L1194.2,44.3 L1200.1,59.8 L1196.1,59.8 L1203.6,76.2 Z M1181.2,76.1 L1187.9,61.3 L1184.3,61.3 L1189.6,47.4 L1192.5,32.6 L1195.3,47.4 L1200.6,61.3 L1197.0,61.3 L1203.7,76.1 Z M1401.0,66.2 L1408.7,49.3 L1404.6,49.3 L1410.7,33.5 L1413.9,16.6 L1417.1,33.5 L1423.2,49.3 L1419.1,49.3 L1426.8,66.2 Z%22/%3E%3C/svg%3E");
    --ridge-front: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 90%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,90 L0,77.5 L16,77.5 L32,77.5 L48,77.5 L64,77.7 L80,77.9 L96,78.3 L112,78.8 L128,79.2 L144,79.6 L160,80.0 L176,80.2 L192,80.2 L208,80.1 L224,79.8 L240,79.5 L256,79.1 L272,78.7 L288,78.4 L304,78.3 L320,78.4 L336,78.7 L352,79.2 L368,79.9 L384,80.7 L400,81.6 L416,82.4 L432,83.2 L448,83.9 L464,84.4 L480,84.8 L496,85.0 L512,85.2 L528,85.3 L544,85.5 L560,85.7 L576,85.9 L592,86.3 L608,86.8 L624,87.2 L640,87.7 L656,88.1 L672,88.3 L688,88.4 L704,88.2 L720,87.8 L736,87.1 L752,86.2 L768,85.2 L784,84.2 L800,83.1 L816,82.1 L832,81.3 L848,80.6 L864,80.1 L880,79.7 L896,79.5 L912,79.3 L928,79.1 L944,78.9 L960,78.6 L976,78.2 L992,77.7 L1008,77.2 L1024,76.7 L1040,76.2 L1056,75.7 L1072,75.5 L1088,75.4 L1104,75.5 L1120,75.8 L1136,76.2 L1152,76.8 L1168,77.3 L1184,77.8 L1200,78.2 L1216,78.4 L1232,78.4 L1248,78.2 L1264,77.9 L1280,77.4 L1296,76.8 L1312,76.3 L1328,75.8 L1344,75.4 L1360,75.1 L1376,75.0 L1392,75.0 L1408,75.1 L1424,75.2 L1440,75.4 L1440,90 Z M271.6,81.6 L275.7,72.5 L273.5,72.5 L276.8,64.0 L278.5,54.9 L280.3,64.0 L283.5,72.5 L281.3,72.5 L285.5,81.6 Z M649.3,91.0 L651.7,85.8 L650.4,85.8 L652.3,80.8 L653.3,75.5 L654.3,80.8 L656.2,85.8 L654.9,85.8 L657.4,91.0 Z M667.0,91.3 L669.9,84.9 L668.4,84.9 L670.7,78.9 L671.9,72.5 L673.1,78.9 L675.4,84.9 L673.9,84.9 L676.8,91.3 Z M727.0,90.3 L729.4,85.1 L728.1,85.1 L730.0,80.1 L731.0,74.9 L732.0,80.1 L733.9,85.1 L732.6,85.1 L735.0,90.3 Z M729.7,90.1 L733.9,80.9 L731.6,80.9 L734.9,72.3 L736.7,63.1 L738.4,72.3 L741.7,80.9 L739.5,80.9 L743.7,90.1 Z M797.2,85.9 L801.1,77.4 L799.0,77.4 L802.1,69.3 L803.7,60.8 L805.3,69.3 L808.4,77.4 L806.3,77.4 L810.2,85.9 Z M838.5,83.8 L840.8,78.8 L839.6,78.8 L841.4,74.1 L842.3,69.2 L843.3,74.1 L845.1,78.8 L843.9,78.8 L846.2,83.8 Z M894.1,82.4 L898.7,72.3 L896.3,72.3 L899.9,62.8 L901.8,52.7 L903.8,62.8 L907.4,72.3 L904.9,72.3 L909.6,82.4 Z M1306.2,79.2 L1310.8,69.2 L1308.4,69.2 L1312.0,59.8 L1313.9,49.8 L1315.8,59.8 L1319.4,69.2 L1317.0,69.2 L1321.5,79.2 Z%22/%3E%3C/svg%3E");
}

/* Sky hero with drifting clouds */
.res-hero { background: linear-gradient(180deg, rgba(34,116,134,0.66) 0%, rgba(62,162,182,0.46) 30%, rgba(79,184,200,0.2) 58%, rgba(250,248,244,0) 82%), var(--warm-white-light, #FAF8F4); padding-bottom: 6.5rem; }
.res-clouds { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.res-cloud { position: absolute; width: 220px; height: 46px; border-radius: 999px; background: rgba(255,255,255,0.85); filter: blur(2px); animation: res-drift linear infinite; }
.res-cloud::before, .res-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.res-cloud::before { width: 96px; height: 80px; left: 34px; top: -40px; }
.res-cloud::after { width: 120px; height: 96px; left: 92px; top: -54px; }
/* Golden light: a warm sun off to the upper right, with soft irregular rays that slowly turn */
@property --sun-r1 { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --sun-r2 { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.res-hero::before, .res-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.res-hero::before {
    background: radial-gradient(circle at 96% 22%, rgba(255,252,236,1) 0, rgba(255,240,186,0.97) 30px, rgba(255,210,125,0.7) 70px, rgba(252,192,108,0.38) 170px, rgba(246,180,100,0.16) 380px, transparent 680px),
        conic-gradient(from var(--sun-r1) at 96% 22%, transparent 0.0deg, rgba(255,206,120,0.36) 2.1deg, transparent 4.3deg, transparent 8.0deg, rgba(255,206,120,0.34) 10.2deg, transparent 12.3deg, transparent 14.9deg, rgba(255,206,120,0.34) 16.3deg, transparent 17.8deg, transparent 20.5deg, rgba(255,206,120,0.21) 23.5deg, transparent 26.5deg, transparent 28.0deg, rgba(255,206,120,0.44) 29.3deg, transparent 30.5deg, transparent 33.4deg, rgba(255,206,120,0.49) 34.5deg, transparent 35.6deg, transparent 39.5deg, rgba(255,206,120,0.38) 42.1deg, transparent 44.8deg, transparent 45.8deg, rgba(255,206,120,0.35) 46.9deg, transparent 47.9deg, transparent 48.6deg, rgba(255,206,120,0.26) 50.1deg, transparent 51.6deg, transparent 52.2deg, rgba(255,206,120,0.32) 54.3deg, transparent 56.5deg, transparent 59.9deg, rgba(255,206,120,0.38) 62.2deg, transparent 64.5deg, transparent 66.8deg, rgba(255,206,120,0.33) 69.4deg, transparent 72.1deg, transparent 73.6deg, rgba(255,206,120,0.50) 77.1deg, transparent 80.5deg, transparent 84.0deg, rgba(255,206,120,0.28) 86.8deg, transparent 89.5deg, transparent 90.8deg, rgba(255,206,120,0.20) 92.6deg, transparent 94.3deg, transparent 97.5deg, rgba(255,206,120,0.45) 99.5deg, transparent 101.5deg, transparent 103.3deg, rgba(255,206,120,0.45) 106.7deg, transparent 110.1deg, transparent 110.6deg, rgba(255,206,120,0.47) 112.1deg, transparent 113.7deg, transparent 115.8deg, rgba(255,206,120,0.31) 119.3deg, transparent 122.7deg, transparent 123.5deg, rgba(255,206,120,0.43) 126.0deg, transparent 128.6deg, transparent 130.0deg, rgba(255,206,120,0.29) 131.3deg, transparent 132.5deg, transparent 136.4deg, rgba(255,206,120,0.22) 139.3deg, transparent 142.1deg, transparent 143.5deg, rgba(255,206,120,0.20) 144.8deg, transparent 146.0deg, transparent 149.3deg, rgba(255,206,120,0.36) 150.8deg, transparent 152.2deg, transparent 154.3deg, rgba(255,206,120,0.41) 155.7deg, transparent 157.2deg, transparent 158.2deg, rgba(255,206,120,0.22) 160.8deg, transparent 163.4deg, transparent 165.4deg, rgba(255,206,120,0.27) 166.9deg, transparent 168.4deg, transparent 172.3deg, rgba(255,206,120,0.28) 175.3deg, transparent 178.3deg, transparent 181.9deg, rgba(255,206,120,0.31) 183.5deg, transparent 185.0deg, transparent 188.5deg, rgba(255,206,120,0.21) 191.1deg, transparent 193.7deg, transparent 197.7deg, rgba(255,206,120,0.26) 199.2deg, transparent 200.7deg, transparent 203.9deg, rgba(255,206,120,0.27) 205.7deg, transparent 207.6deg, transparent 208.3deg, rgba(255,206,120,0.37) 209.6deg, transparent 210.8deg, transparent 212.1deg, rgba(255,206,120,0.30) 214.6deg, transparent 217.1deg, transparent 219.2deg, rgba(255,206,120,0.33) 222.6deg, transparent 226.0deg, transparent 228.5deg, rgba(255,206,120,0.24) 231.7deg, transparent 234.9deg, transparent 235.9deg, rgba(255,206,120,0.44) 239.2deg, transparent 242.4deg, transparent 243.8deg, rgba(255,206,120,0.42) 245.3deg, transparent 246.8deg, transparent 250.6deg, rgba(255,206,120,0.48) 252.0deg, transparent 253.5deg, transparent 257.1deg, rgba(255,206,120,0.31) 259.6deg, transparent 262.1deg, transparent 263.0deg, rgba(255,206,120,0.49) 264.1deg, transparent 265.2deg, transparent 266.5deg, rgba(255,206,120,0.26) 269.3deg, transparent 272.1deg, transparent 275.4deg, rgba(255,206,120,0.27) 277.9deg, transparent 280.4deg, transparent 281.5deg, rgba(255,206,120,0.20) 284.3deg, transparent 287.1deg, transparent 288.4deg, rgba(255,206,120,0.45) 290.8deg, transparent 293.2deg, transparent 295.9deg, rgba(255,206,120,0.47) 297.6deg, transparent 299.3deg, transparent 300.5deg, rgba(255,206,120,0.27) 301.5deg, transparent 302.6deg, transparent 304.6deg, rgba(255,206,120,0.24) 305.8deg, transparent 306.9deg, transparent 308.7deg, rgba(255,206,120,0.22) 311.2deg, transparent 313.6deg, transparent 315.4deg, rgba(255,206,120,0.49) 318.6deg, transparent 321.8deg, transparent 324.6deg, rgba(255,206,120,0.37) 327.3deg, transparent 330.1deg, transparent 331.1deg, rgba(255,206,120,0.19) 332.2deg, transparent 333.2deg, transparent 336.9deg, rgba(255,206,120,0.49) 339.7deg, transparent 342.4deg, transparent 343.0deg, rgba(255,206,120,0.33) 345.6deg, transparent 348.2deg, transparent 351.2deg, rgba(255,206,120,0.50) 353.0deg, transparent 354.8deg, transparent 360deg);
    -webkit-mask: radial-gradient(circle at 96% 22%, #000 0, rgba(0,0,0,0.6) 240px, rgba(0,0,0,0.2) 500px, transparent 760px); mask: radial-gradient(circle at 96% 22%, #000 0, rgba(0,0,0,0.6) 240px, rgba(0,0,0,0.2) 500px, transparent 760px);
    filter: blur(3px); animation: res-sun-turn 120s linear infinite; }
.res-hero::after {
    background: conic-gradient(from var(--sun-r2) at 96% 22%, transparent 0.0deg, rgba(255,226,160,0.19) 1.0deg, transparent 2.1deg, transparent 7.4deg, rgba(255,226,160,0.22) 8.2deg, transparent 9.0deg, transparent 12.0deg, rgba(255,226,160,0.31) 12.9deg, transparent 13.9deg, transparent 15.8deg, rgba(255,226,160,0.16) 16.8deg, transparent 17.7deg, transparent 20.8deg, rgba(255,226,160,0.19) 22.3deg, transparent 23.8deg, transparent 28.0deg, rgba(255,226,160,0.27) 28.9deg, transparent 29.9deg, transparent 33.4deg, rgba(255,226,160,0.21) 34.0deg, transparent 34.7deg, transparent 38.0deg, rgba(255,226,160,0.23) 39.3deg, transparent 40.6deg, transparent 43.0deg, rgba(255,226,160,0.18) 44.2deg, transparent 45.4deg, transparent 49.2deg, rgba(255,226,160,0.20) 49.9deg, transparent 50.6deg, transparent 55.6deg, rgba(255,226,160,0.27) 56.7deg, transparent 57.7deg, transparent 62.6deg, rgba(255,226,160,0.25) 63.7deg, transparent 64.8deg, transparent 68.0deg, rgba(255,226,160,0.28) 69.2deg, transparent 70.3deg, transparent 72.2deg, rgba(255,226,160,0.19) 73.7deg, transparent 75.1deg, transparent 77.2deg, rgba(255,226,160,0.19) 77.9deg, transparent 78.5deg, transparent 80.3deg, rgba(255,226,160,0.20) 81.2deg, transparent 82.1deg, transparent 86.6deg, rgba(255,226,160,0.31) 87.5deg, transparent 88.5deg, transparent 93.0deg, rgba(255,226,160,0.29) 93.8deg, transparent 94.6deg, transparent 99.3deg, rgba(255,226,160,0.27) 100.7deg, transparent 102.2deg, transparent 108.0deg, rgba(255,226,160,0.18) 108.8deg, transparent 109.5deg, transparent 115.3deg, rgba(255,226,160,0.30) 115.9deg, transparent 116.4deg, transparent 122.0deg, rgba(255,226,160,0.15) 122.6deg, transparent 123.2deg, transparent 128.9deg, rgba(255,226,160,0.29) 130.3deg, transparent 131.8deg, transparent 136.5deg, rgba(255,226,160,0.18) 137.8deg, transparent 139.1deg, transparent 140.6deg, rgba(255,226,160,0.30) 141.7deg, transparent 142.9deg, transparent 148.6deg, rgba(255,226,160,0.12) 149.6deg, transparent 150.7deg, transparent 152.9deg, rgba(255,226,160,0.17) 153.9deg, transparent 154.8deg, transparent 156.5deg, rgba(255,226,160,0.22) 157.2deg, transparent 157.8deg, transparent 159.9deg, rgba(255,226,160,0.15) 160.5deg, transparent 161.1deg, transparent 162.8deg, rgba(255,226,160,0.29) 164.1deg, transparent 165.4deg, transparent 167.8deg, rgba(255,226,160,0.30) 168.9deg, transparent 170.0deg, transparent 172.6deg, rgba(255,226,160,0.30) 173.5deg, transparent 174.3deg, transparent 179.2deg, rgba(255,226,160,0.28) 180.4deg, transparent 181.5deg, transparent 185.6deg, rgba(255,226,160,0.26) 186.4deg, transparent 187.2deg, transparent 192.2deg, rgba(255,226,160,0.18) 192.8deg, transparent 193.3deg, transparent 196.1deg, rgba(255,226,160,0.18) 197.5deg, transparent 198.9deg, transparent 203.4deg, rgba(255,226,160,0.20) 204.4deg, transparent 205.3deg, transparent 209.1deg, rgba(255,226,160,0.25) 210.5deg, transparent 211.9deg, transparent 215.1deg, rgba(255,226,160,0.19) 215.8deg, transparent 216.4deg, transparent 220.0deg, rgba(255,226,160,0.32) 221.2deg, transparent 222.3deg, transparent 225.3deg, rgba(255,226,160,0.30) 226.7deg, transparent 228.2deg, transparent 231.7deg, rgba(255,226,160,0.17) 232.4deg, transparent 233.1deg, transparent 238.7deg, rgba(255,226,160,0.25) 239.4deg, transparent 240.1deg, transparent 244.5deg, rgba(255,226,160,0.13) 245.2deg, transparent 245.9deg, transparent 250.2deg, rgba(255,226,160,0.23) 250.8deg, transparent 251.3deg, transparent 257.2deg, rgba(255,226,160,0.18) 258.2deg, transparent 259.1deg, transparent 261.1deg, rgba(255,226,160,0.18) 261.9deg, transparent 262.7deg, transparent 264.8deg, rgba(255,226,160,0.24) 266.0deg, transparent 267.2deg, transparent 271.9deg, rgba(255,226,160,0.17) 272.5deg, transparent 273.1deg, transparent 278.8deg, rgba(255,226,160,0.19) 279.3deg, transparent 279.8deg, transparent 285.0deg, rgba(255,226,160,0.16) 285.7deg, transparent 286.4deg, transparent 290.8deg, rgba(255,226,160,0.19) 291.5deg, transparent 292.3deg, transparent 295.6deg, rgba(255,226,160,0.25) 296.4deg, transparent 297.2deg, transparent 302.0deg, rgba(255,226,160,0.32) 303.2deg, transparent 304.5deg, transparent 306.3deg, rgba(255,226,160,0.32) 307.1deg, transparent 307.8deg, transparent 312.9deg, rgba(255,226,160,0.16) 314.2deg, transparent 315.4deg, transparent 317.5deg, rgba(255,226,160,0.30) 318.3deg, transparent 319.1deg, transparent 323.9deg, rgba(255,226,160,0.25) 324.8deg, transparent 325.7deg, transparent 330.5deg, rgba(255,226,160,0.14) 331.3deg, transparent 332.1deg, transparent 337.2deg, rgba(255,226,160,0.28) 338.4deg, transparent 339.6deg, transparent 344.5deg, rgba(255,226,160,0.25) 345.3deg, transparent 346.2deg, transparent 349.3deg, rgba(255,226,160,0.14) 350.7deg, transparent 352.2deg, transparent 360deg);
    -webkit-mask: radial-gradient(circle at 96% 22%, #000 0, rgba(0,0,0,0.6) 240px, rgba(0,0,0,0.2) 500px, transparent 760px); mask: radial-gradient(circle at 96% 22%, #000 0, rgba(0,0,0,0.6) 240px, rgba(0,0,0,0.2) 500px, transparent 760px);
    filter: blur(2px); animation: res-sun-turn-back 80s linear infinite, res-rays 7s ease-in-out infinite alternate; }
@keyframes res-sun-turn { to { --sun-r1: 360deg; } }
@keyframes res-sun-turn-back { from { --sun-r2: 360deg; } to { --sun-r2: 0deg; } }
@keyframes res-rays { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes res-drift { from { transform: translateX(-30vw) scale(var(--s, 1)); } to { transform: translateX(130vw) scale(var(--s, 1)); } }

/* Ridgeline dividers: back ridge in sage, front ridge in the next section's color */
.res-hero, .res-start, .res-path, .res-book { position: relative; }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; height: 84px; pointer-events: none; z-index: 1; }
.ridge::before, .ridge::after { content: ''; position: absolute; inset: 0; -webkit-mask: var(--m) no-repeat center bottom / 100% 100%; mask: var(--m) no-repeat center bottom / 100% 100%; }
.ridge::before { --m: var(--ridge-back); background: var(--ridge-back-c, #8DA266); }
.ridge::after { --m: var(--ridge-front); background: var(--ridge-to, #F5F2EC); }
.ridge-to-light { --ridge-to: var(--warm-white-light, #FAF8F4); }
.ridge-to-sage { --ridge-to: var(--sage-mist, #EDEFE4); }
.ridge-to-dusk { --ridge-to: var(--black-navy, #1A1A2E); --ridge-back-c: rgba(82,55,89,0.55); }
.res-start, .res-path { padding-bottom: 7.5rem; }
.res-book { padding-bottom: 8rem; }
.res-path, .res-stacks, .res-book { border-top: 0; }

/* Stacks: trail-marker shelves, format icons, lift on hover */
[data-format="handout"]  { --fc: var(--rust, #C3703D); }
[data-format="listen"]   { --fc: var(--eggplant, #523759); }
[data-format="watch"]    { --fc: var(--twilight-indigo, #223554); }
[data-format="read"]     { --fc: var(--stormy-teal, #2C6671); }
[data-format="favorite"] { --fc: #6E7656; }
[data-format="all"]      { --fc: var(--black-navy, #1A1A2E); }
.rc-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--fc) 12%, transparent); color: var(--fc); }
.rc-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rc-head { display: flex; align-items: center; gap: 0.6rem; }
.rc-thumb + .rc-head { margin-top: 0.1rem; }
a.rc { transition: border-color .2s, box-shadow .25s, transform .25s; }
a.rc:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(26,26,46,0.4); }
a.rc:hover .rc-ico svg { animation: rc-bob .6s ease; }
@keyframes rc-bob { 40% { transform: translateY(-2px) rotate(-8deg); } 75% { transform: rotate(4deg); } }

/* Through Me: dusk over the lake */
.res-through { background: linear-gradient(180deg, #1A1A2E 0%, #1F2642 30%, #2E2D4E 54%, #3A2E4E 70%, #2B3352 84%, #2C5263 94%, var(--stormy-teal, #2C6671) 100%); }
.through-stars, .through-stars::after { position: absolute; top: 0; left: 50%; width: 1px; height: 1px; margin-left: -800px; border-radius: 50%; pointer-events: none; }
.through-stars { opacity: 0.7; box-shadow: 483px 310px 0 0px rgba(245,242,236,0.9), 980px 158px 0 0px rgba(245,242,236,0.35), 40px 411px 0 0.5px rgba(245,242,236,0.35), 454px 532px 0 0.5px rgba(245,242,236,0.7), 1596px 176px 0 0px rgba(245,242,236,0.7), 439px 26px 0 0.5px rgba(245,242,236,0.7), 396px 168px 0 0.5px rgba(245,242,236,0.7), 1284px 381px 0 0px rgba(245,242,236,0.7), 1375px 397px 0 0px rgba(245,242,236,0.5), 506px 484px 0 0.5px rgba(245,242,236,0.35), 1121px 307px 0 0px rgba(245,242,236,0.7), 1172px 319px 0 0px rgba(245,242,236,0.9), 867px 295px 0 1px rgba(245,242,236,0.9), 330px 238px 0 0.5px rgba(245,242,236,0.7), 88px 83px 0 0px rgba(245,242,236,0.9), 1282px 287px 0 1px rgba(245,242,236,0.7), 297px 200px 0 0px rgba(245,242,236,0.9), 415px 451px 0 0.5px rgba(245,242,236,0.5), 728px 446px 0 0.5px rgba(245,242,236,0.5), 662px 103px 0 0px rgba(245,242,236,0.5), 568px 243px 0 0px rgba(245,242,236,0.7), 363px 297px 0 1px rgba(245,242,236,0.35), 87px 365px 0 0px rgba(245,242,236,0.7), 1505px 334px 0 0px rgba(245,242,236,0.7), 591px 329px 0 0px rgba(245,242,236,0.9), 1270px 79px 0 0.5px rgba(245,242,236,0.5), 909px 299px 0 0px rgba(245,242,236,0.7), 781px 162px 0 0.5px rgba(245,242,236,0.35), 744px 45px 0 1px rgba(245,242,236,0.5), 747px 371px 0 0.5px rgba(245,242,236,0.35), 899px 212px 0 1px rgba(245,242,236,0.5), 232px 60px 0 0px rgba(245,242,236,0.35), 1509px 172px 0 0px rgba(245,242,236,0.35), 1118px 502px 0 0px rgba(245,242,236,0.7), 72px 125px 0 0.5px rgba(245,242,236,0.9), 1334px 205px 0 1px rgba(245,242,236,0.5), 495px 449px 0 1px rgba(245,242,236,0.9), 75px 224px 0 1px rgba(245,242,236,0.9), 509px 438px 0 0px rgba(245,242,236,0.9), 384px 32px 0 0px rgba(245,242,236,0.7), 518px 248px 0 0px rgba(245,242,236,0.5), 854px 267px 0 0px rgba(245,242,236,0.7), 105px 322px 0 0px rgba(245,242,236,0.9), 1337px 41px 0 1px rgba(245,242,236,0.9), 190px 440px 0 0px rgba(245,242,236,0.5), 689px 303px 0 1px rgba(245,242,236,0.7), 860px 540px 0 0px rgba(245,242,236,0.7), 693px 401px 0 1px rgba(245,242,236,0.35), 573px 195px 0 0px rgba(245,242,236,0.9), 1268px 130px 0 0.5px rgba(245,242,236,0.35), 342px 475px 0 1px rgba(245,242,236,0.9), 799px 223px 0 0px rgba(245,242,236,0.5), 321px 13px 0 0.5px rgba(245,242,236,0.35), 810px 390px 0 0px rgba(245,242,236,0.35), 413px 165px 0 0.5px rgba(245,242,236,0.9), 1078px 450px 0 0px rgba(245,242,236,0.35), 70px 115px 0 1px rgba(245,242,236,0.7), 1245px 142px 0 0px rgba(245,242,236,0.7), 163px 535px 0 0px rgba(245,242,236,0.7), 710px 76px 0 0px rgba(245,242,236,0.9), 780px 210px 0 0.5px rgba(245,242,236,0.9), 478px 498px 0 1px rgba(245,242,236,0.35), 158px 117px 0 0.5px rgba(245,242,236,0.9), 851px 454px 0 0px rgba(245,242,236,0.5), 1304px 309px 0 1px rgba(245,242,236,0.9), 242px 171px 0 0.5px rgba(245,242,236,0.5), 361px 152px 0 0.5px rgba(245,242,236,0.9), 693px 264px 0 0px rgba(245,242,236,0.5), 11px 319px 0 0px rgba(245,242,236,0.35), 996px 495px 0 0px rgba(245,242,236,0.5); }
.through-stars::after { content: ''; margin-left: 0; left: 0; box-shadow: 842px 300px 0 0.5px rgba(245,242,236,0.5), 1570px 184px 0 0px rgba(245,242,236,0.35), 1248px 320px 0 1px rgba(245,242,236,0.7), 1037px 451px 0 1px rgba(245,242,236,0.9), 288px 257px 0 0.5px rgba(245,242,236,0.7), 272px 443px 0 0px rgba(245,242,236,0.5), 1383px 181px 0 0.5px rgba(245,242,236,0.7), 404px 358px 0 0px rgba(245,242,236,0.35), 824px 183px 0 0.5px rgba(245,242,236,0.7), 669px 178px 0 0.5px rgba(245,242,236,0.35), 1236px 20px 0 0px rgba(245,242,236,0.7), 201px 162px 0 0px rgba(245,242,236,0.9), 1353px 78px 0 0px rgba(245,242,236,0.5), 1334px 490px 0 0px rgba(245,242,236,0.7), 1408px 415px 0 0px rgba(245,242,236,0.9), 1440px 226px 0 0.5px rgba(245,242,236,0.7), 471px 334px 0 1px rgba(245,242,236,0.9), 1036px 410px 0 0.5px rgba(245,242,236,0.7), 897px 421px 0 0px rgba(245,242,236,0.7), 376px 469px 0 0.5px rgba(245,242,236,0.9), 795px 28px 0 0px rgba(245,242,236,0.35), 938px 355px 0 0.5px rgba(245,242,236,0.35), 1547px 264px 0 1px rgba(245,242,236,0.5), 1310px 488px 0 0px rgba(245,242,236,0.5), 488px 70px 0 0.5px rgba(245,242,236,0.5), 96px 167px 0 1px rgba(245,242,236,0.7), 37px 251px 0 0px rgba(245,242,236,0.35), 420px 32px 0 0.5px rgba(245,242,236,0.35), 249px 277px 0 0px rgba(245,242,236,0.7), 1248px 176px 0 0px rgba(245,242,236,0.9), 266px 83px 0 0.5px rgba(245,242,236,0.35), 1482px 159px 0 1px rgba(245,242,236,0.5), 440px 305px 0 1px rgba(245,242,236,0.35), 769px 172px 0 0px rgba(245,242,236,0.7), 1054px 400px 0 0.5px rgba(245,242,236,0.9), 672px 174px 0 1px rgba(245,242,236,0.35), 866px 28px 0 0.5px rgba(245,242,236,0.35), 622px 156px 0 0px rgba(245,242,236,0.5), 237px 15px 0 0px rgba(245,242,236,0.5), 1133px 8px 0 1px rgba(245,242,236,0.5), 926px 388px 0 0.5px rgba(245,242,236,0.5), 1086px 192px 0 0px rgba(245,242,236,0.9), 1268px 365px 0 0.5px rgba(245,242,236,0.9), 1229px 38px 0 0px rgba(245,242,236,0.7), 1185px 314px 0 1px rgba(245,242,236,0.7); }
.through-lake { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; pointer-events: none; background: linear-gradient(180deg, rgba(79,184,200,0) 0%, rgba(79,184,200,0.07) 45%, rgba(26,26,46,0) 100%); }
.through-lake::before { content: ''; position: absolute; left: 50%; top: 48%; width: 34%; height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255,214,150,0.55), transparent); box-shadow: 0 10px 0 -0.5px rgba(255,214,150,0.25), 0 22px 0 -1px rgba(255,214,150,0.12); animation: through-shimmer 6s ease-in-out infinite; }
@keyframes through-shimmer { 50% { opacity: 0.55; width: 28%; } }
.through-inner { z-index: 2; }


@media (prefers-reduced-motion: reduce) {
    .res-cloud, .through-stars, .through-stars::after, .through-lake::before, a.rc:hover .rc-ico svg { animation: none; }
    .res-cloud { display: none; }
    .res-hero::before, .res-hero::after { animation: none; }
}
@media (max-width: 600px) {
    .ridge { height: 44px; }
    .res-hero { padding-bottom: 4.5rem; }
    .res-start, .res-path { padding-bottom: 5.5rem; }
    .res-book { padding-bottom: 6rem; }
}


/* ── Shelf rows (main page) ────────────────────────────── */
.shelf-row + .shelf-row { margin-top: 3.25rem; }
.shelf-row-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(26,26,46,0.1); }
.shelf-row-head h3 { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: 1.45rem; color: var(--black-navy, #1A1A2E); margin: 0; }
.shelf-row-n { font-family: 'Open Sans', sans-serif; font-size: 0.72rem; font-weight: 600; color: rgba(26,26,46,0.4); }
.shelf-row-all { margin-left: auto; font-family: 'Open Sans', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--fc, var(--stormy-teal, #2C6671)); text-decoration: none; white-space: nowrap; transition: transform .2s; }
.shelf-row-all:hover { transform: translateX(3px); }

/* ── Shelf pages ───────────────────────────────────────── */
.shelf-hero .res-inner { grid-template-columns: 1fr; }
.shelf-hero { padding-bottom: 6rem; }
.shelf-back { display: inline-block; margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--stormy-teal, #2C6671); text-decoration: none; }
.shelf-back:hover { text-decoration: underline; }
.shelf-page { background: var(--warm-white, #F5F2EC); padding-top: 3rem; }
.shelf-page .stacks-grid { margin-bottom: 4rem; }
.shelf-others-wrap { padding-top: 2.5rem; border-top: 1px solid rgba(26,26,46,0.1); }
.shelf-others { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.shelf-other { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1rem 0.5rem 0.5rem; border-radius: 999px; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.1); text-decoration: none; font-family: 'Libre Baskerville', serif; font-size: 0.95rem; color: var(--black-navy, #1A1A2E); transition: border-color .2s, transform .2s; }
.shelf-other:hover { border-color: var(--fc); transform: translateY(-2px); }
.shelf-other span:last-child { font-family: 'Open Sans', sans-serif; color: var(--fc); }
@media (max-width: 600px) {
    .shelf-row-head { flex-wrap: wrap; }
    .shelf-row-all { margin-left: 0; width: 100%; }
    .shelf-hero { padding-bottom: 4rem; }
}
.stacks-empty p { color: rgba(26,26,46,0.55); margin: 0; }
.stacks-filters[hidden] { display: none; }
.stacks-results[hidden], #stacksRows[hidden] { display: none; }
.res-stacks .stacks-filters { margin-bottom: 2.25rem; }
.stacks-results .stacks-count { margin-top: 0; display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.stacks-clear { background: none; border: 0; padding: 0; font-family: 'Open Sans', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--stormy-teal, #2C6671); text-decoration: underline; cursor: pointer; }

/* ── Field guide pages ─────────────────────────────────── */
.fg-way[data-way="to-me"]      { --wc: var(--dark-wine, #721817); }
.fg-way[data-way="by-me"]      { --wc: var(--stormy-teal, #2C6671); }
.fg-way[data-way="through-me"] { --wc: #2E8E9C; }
.fg-way[data-way="as-me"]      { --wc: var(--eggplant, #523759); }
.fg-crumbs { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; font-family: 'Open Sans', sans-serif; font-size: 0.8rem; color: rgba(26,26,46,0.4); }
.fg-crumbs a { color: var(--stormy-teal, #2C6671); font-weight: 600; text-decoration: none; }
.fg-crumbs a:hover { text-decoration: underline; }
.fg-hero h1 { max-width: 18ch; }
.fg-hero .res-hero-text em { font-style: italic; color: var(--stormy-teal, #2C6671); }
.fg-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.fg-download { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: 6px; background: var(--rust, #C3703D); color: #fff; font-family: 'Open Sans', sans-serif; font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: background .2s; }
.fg-download:hover { background: #a85e31; }
.fg-meta { font-family: 'Open Sans', sans-serif; font-size: 0.8rem; color: rgba(26,26,46,0.5); }
.fg-section { background: var(--warm-white, #F5F2EC); }
.fg-applied { background: var(--warm-white-light, #FAF8F4); border-top: 1px solid rgba(26,26,46,0.06); }

.fg-ways { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr); gap: 0.6rem; align-items: stretch; margin-top: 2rem; }
.fg-way { position: relative; display: flex; flex-direction: column; padding: 1.5rem 1.3rem 1.4rem; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-top: 3px solid var(--wc); border-radius: 12px; min-width: 0; scroll-margin-top: 110px; }
.fg-way h3 { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.45rem; color: var(--wc); margin: 0; }
.fg-way-tag { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.95rem; color: rgba(26,26,46,0.65); margin: 0.3rem 0 1rem; }
.fg-way dl { margin: 0; display: grid; gap: 0.75rem; }
.fg-way dl div { display: grid; gap: 0.15rem; }
.fg-way dt { font-family: 'Open Sans', sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,26,46,0.45); }
.fg-way dd { margin: 0; font-family: 'Open Sans', sans-serif; font-size: 0.88rem; line-height: 1.55; color: var(--black-navy, #1A1A2E); }
.fg-way .fg-q dd { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.95rem; color: var(--wc); }
.fg-tri { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 1.5rem; row-gap: 0.15rem; margin: -0.2rem 0 1rem; font-family: 'Open Sans', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark-wine, #721817); }
.fg-tri i { grid-column: 1 / -1; justify-self: center; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 16px solid var(--dark-wine, #721817); }
.fg-tri span:last-child { grid-column: 1 / -1; justify-self: center; }
.fg-shift { display: flex; align-items: center; justify-content: center; }
.fg-shift span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 0.9rem 0.3rem 1.3rem; background: var(--bright-teal, #4FB8C8); color: #fff; font-family: 'Open Sans', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 0px), 0 100%); clip-path: polygon(0 12px, 50% 0, 100% 12px, 100% 100%, 0 100%); }
.fg-note { margin: 2rem 0 0; font-family: 'Open Sans', sans-serif; font-size: 0.92rem; color: rgba(26,26,46,0.6); }
.fg-note a { color: var(--stormy-teal, #2C6671); font-weight: 600; }

.fg-topics { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.fg-topics button { font-family: 'Open Sans', sans-serif; font-size: 0.82rem; font-weight: 600; padding: 0.42rem 0.9rem; border-radius: 999px; border: 1px solid rgba(26,26,46,0.15); background: #FDFCF9; color: rgba(26,26,46,0.75); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fg-topics button[aria-pressed="true"] { background: var(--black-navy, #1A1A2E); border-color: var(--black-navy, #1A1A2E); color: #fff; }
.fg-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(26,26,46,0.08); background: #FDFCF9; }
.fg-table { width: 100%; border-collapse: collapse; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.55; color: var(--black-navy, #1A1A2E); }
.fg-table th, .fg-table td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(26,26,46,0.07); }
.fg-table thead th { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1rem; border-bottom: 2px solid rgba(26,26,46,0.12); }
.fg-table thead th:nth-child(2) { color: var(--dark-wine, #721817); }
.fg-table thead th:nth-child(3) { color: var(--stormy-teal, #2C6671); }
.fg-table thead th:nth-child(4) { color: #2E8E9C; }
.fg-table thead th:nth-child(5) { color: var(--eggplant, #523759); }
.fg-table tbody th { width: 9rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-wine, #721817); }
.fg-table tbody tr:last-child th, .fg-table tbody tr:last-child td { border-bottom: 0; }
.fg-js .fg-table tbody tr { display: none; }
.fg-js .fg-table tbody tr.on { display: table-row; animation: fg-in .35s ease; }
.fg-js .fg-table:not(.all) tbody tr.on td { font-size: 1rem; padding-block: 1.4rem; }
@keyframes fg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fg-end { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.fg-next { font-family: 'Open Sans', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stormy-teal, #2C6671); text-decoration: none; }
.fg-credit { margin: 2rem 0 0; font-family: 'Open Sans', sans-serif; font-style: italic; font-size: 0.8rem; color: rgba(26,26,46,0.5); }

@media (max-width: 1000px) {
    .fg-ways { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
    .fg-shift { padding: 0.5rem 0; }
    .fg-shift span { writing-mode: horizontal-tb; transform: none; padding: 0.35rem 1.6rem 0.35rem 1rem; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
}
@media (max-width: 700px) {
    .fg-table thead { display: none; }
    .fg-table, .fg-table tbody, .fg-table tr, .fg-table th, .fg-table td { display: block; width: auto; }
    .fg-js .fg-table tbody tr.on { display: block; }
    .fg-table tbody th { padding-bottom: 0.25rem; border-bottom: 0; }
    .fg-table td { padding-top: 0.55rem; padding-bottom: 0.55rem; border-bottom: 0; }
    .fg-table td::before { content: attr(data-way); display: block; font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.1rem; }
    .fg-table td:nth-of-type(1)::before { color: var(--dark-wine, #721817); }
    .fg-table td:nth-of-type(2)::before { color: var(--stormy-teal, #2C6671); }
    .fg-table td:nth-of-type(3)::before { color: #2E8E9C; }
    .fg-table td:nth-of-type(4)::before { color: var(--eggplant, #523759); }
    .fg-table tbody tr { padding-bottom: 0.75rem; border-bottom: 1px solid rgba(26,26,46,0.08); }
}
@media (prefers-reduced-motion: reduce) { .fg-js .fg-table tbody tr.on { animation: none; } }

.through-twinkles { position: absolute; inset: 0; pointer-events: none; }
.tw { position: absolute; border-radius: 50%; background: #F5F2EC; box-shadow: 0 0 6px 1px rgba(245,242,236,0.6); opacity: 0.2; animation: tw-twinkle var(--d) ease-in-out var(--dl) infinite; }
.tw.big { background: #FFF6E4; box-shadow: 0 0 10px 2px rgba(255,236,200,0.65); }
.tw.big::before, .tw.big::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 1px; transform: translate(-50%, -50%); background: linear-gradient(90deg, transparent, rgba(255,246,228,0.9), transparent); }
.tw.big::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes tw-twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .tw { animation: none; opacity: 0.7; } }

/* ── Field guide pages: shared content blocks ──────────── */
.fgx { max-width: 860px; display: grid; gap: 1.6rem; font-family: 'Open Sans', sans-serif; color: var(--black-navy, #1A1A2E); }
.fgx p, .fgx li, .fgx dd { color: var(--black-navy, #1A1A2E); }
.fgx-sub { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.1rem; color: var(--stormy-teal, #2C6671) !important; margin: -0.25rem 0 0.5rem; max-width: 40ch; }
.fgx-lead { font-size: 1.12rem; line-height: 1.75; margin: 0; max-width: 64ch; }
.fgx-p { font-size: 1rem; line-height: 1.75; margin: 0; max-width: 64ch; }
.fgx-h { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 1.4rem 0 -0.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(26,26,46,0.1); }
.fgx > .fgx-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fgx-hsub { margin: 0; color: rgba(26,26,46,0.6) !important; }
.fgx-lt { font-family: 'Open Sans', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark-wine, #721817); margin: 0 0 0.7rem; }
.fgx-bul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.fgx-bul li { position: relative; padding-left: 1.1rem; font-size: 0.95rem; line-height: 1.6; }
.fgx-bul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--bright-teal, #4FB8C8); }
.fgx-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }

.fgx-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.fgx-step { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.15rem 1.25rem; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-radius: 12px; }
.fgx-n { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--stormy-teal, #2C6671); color: #fff; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.95rem; }
.fgx-step h3 { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.1rem; color: var(--dark-wine, #721817); margin: 0.3rem 0 0.35rem; }
.fgx-step p { margin: 0.3rem 0 0; font-size: 0.97rem; line-height: 1.65; }
.fgx-step .fgx-bul { margin-top: 0.6rem; }

.fgx-colgrid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1rem; }
.fgx-col { padding: 1.2rem 1.25rem; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-radius: 12px; min-width: 0; }
.fgx-col h3 { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.05rem; color: var(--stormy-teal, #2C6671); margin: 0 0 0.6rem; }
.fgx-col > p { margin: 0 0 0.7rem; font-size: 0.93rem; line-height: 1.65; }
.fgx-more { margin: 1rem 0 0.5rem !important; font-size: 0.68rem !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,26,46,0.5) !important; }
.fgx-colgrid[data-tone="above"] .fgx-col { background: rgba(79,184,200,0.07); border-color: rgba(79,184,200,0.25); }
.fgx-colgrid[data-tone="below"] .fgx-col { background: rgba(114,24,23,0.04); border-color: rgba(114,24,23,0.14); }
.fgx-colgrid[data-tone="below"] .fgx-col h3 { color: var(--dark-wine, #721817); }
.fgx-colgrid[data-tone="below"] .fgx-bul li::before { background: var(--dark-wine, #721817); opacity: 0.6; }

.fgx-band { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.9rem 1.2rem; border-radius: 10px; margin-bottom: -0.6rem; }
.fgx-band[data-dir="up"] { background: rgba(79,184,200,0.18); }
.fgx-band[data-dir="down"] { background: rgba(114,24,23,0.12); }
.fgx-band strong { display: block; font-family: 'Libre Baskerville', serif; font-size: 1.05rem; }
.fgx-band span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,26,46,0.6); }
.fgx-band em { font-family: 'Libre Baskerville', serif; font-size: 1rem; color: var(--stormy-teal, #2C6671); }
.fgx-band[data-dir="down"] em { color: var(--dark-wine, #721817); }

.fgx-pairs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.fgx-pair { display: grid; grid-template-columns: 2.25rem minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-radius: 12px; }
.fgx-pair small { display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.25rem; }
.fgx-pair p { margin: 0; font-size: 0.93rem; line-height: 1.6; }
.fgx-by small { color: var(--stormy-teal, #2C6671); }
.fgx-to { padding-left: 1rem; border-left: 2px solid rgba(114,24,23,0.18); }
.fgx-to small { color: var(--dark-wine, #721817); }
.fgx-to p { color: rgba(26,26,46,0.65) !important; }

.fgx-tablewrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(26,26,46,0.08); background: #FDFCF9; }
.fgx-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.55; }
.fgx-table th, .fgx-table td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(26,26,46,0.07); }
.fgx-table thead th { font-family: 'Libre Baskerville', serif; font-weight: 700; color: var(--stormy-teal, #2C6671); border-bottom: 2px solid rgba(26,26,46,0.12); }
.fgx-table tbody th { font-weight: 700; color: var(--dark-wine, #721817); }

.fgx-quote { margin: 0; padding: 1.3rem 1.5rem; border-left: 3px solid var(--bright-teal, #4FB8C8); background: rgba(79,184,200,0.07); border-radius: 0 12px 12px 0; }
.fgx-quote p { margin: 0; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.02rem; line-height: 1.7; }
.fgx-quote cite { display: block; margin-top: 0.7rem; font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,26,46,0.55); }
.fgx-callout { padding: 1.1rem 1.3rem; border-radius: 12px; background: rgba(169,177,143,0.18); }
.fgx-callout h3 { margin: 0 0 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #5C6345; }
.fgx-callout p { margin: 0; font-size: 1rem; line-height: 1.65; }
.fgx-defs { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(26,26,46,0.1); }
.fgx-defs > div { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(26,26,46,0.1); }
.fgx-defs dt { font-family: 'Libre Baskerville', serif; font-weight: 700; color: var(--dark-wine, #721817); }
.fgx-defs dd { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.fgx-words { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fgx-words li { padding: 0.35rem 0.8rem; border-radius: 999px; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.1); font-size: 0.85rem; }
.fgx-prompts { padding: 1.3rem 1.4rem; background: #FDFCF9; border: 1px dashed rgba(26,26,46,0.2); border-radius: 12px; }
.fgx-prompts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.fgx-prompts li { display: grid; gap: 0.4rem; font-size: 0.95rem; }
.fgx-prompts li i { display: block; height: 1px; background: rgba(26,26,46,0.22); }
.fgx-fill { margin: 1.2rem 0 0; font-size: 0.82rem; color: rgba(26,26,46,0.55) !important; font-style: italic; }
.fgx-related { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 2rem; font-size: 0.9rem; }
.fgx-related span { margin-right: 0.4rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,26,46,0.5); }
.fgx-related a { padding: 0.35rem 0.85rem; border-radius: 999px; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.12); color: var(--stormy-teal, #2C6671); font-weight: 600; text-decoration: none; }
.fgx-related a:hover { border-color: var(--stormy-teal, #2C6671); }
p.fgx-related a { padding: 0; border: 0; background: none; }

@media (max-width: 760px) {
    .fgx-colgrid { grid-template-columns: 1fr; }
    .fgx-cols2 { grid-template-columns: 1fr; }
    .fgx-pair { grid-template-columns: 2.25rem minmax(0, 1fr); }
    .fgx-to { grid-column: 2; padding-left: 0; padding-top: 0.6rem; border-left: 0; border-top: 1px solid rgba(114,24,23,0.18); }
    .fgx-defs > div { grid-template-columns: 1fr; gap: 0.2rem; }
    .fgx-step { padding: 1rem; gap: 0.8rem; }
}
.fgx-check { padding: 1.3rem 1.4rem; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.08); border-radius: 12px; }
.fgx-check ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.fgx-check ul.fgx-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.fgx-check label { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.fgx-check input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--stormy-teal, #2C6671); }
.fgx-count { margin: 1rem 0 0; font-size: 0.82rem; font-weight: 600; color: var(--stormy-teal, #2C6671) !important; min-height: 1.2em; }
.fgx-result { margin: 0.5rem 0 0; padding: 0.9rem 1.1rem; border-radius: 10px; background: rgba(195,112,61,0.12); font-size: 0.95rem; line-height: 1.6; }
.fgx-result[hidden] { display: none; }
@media (max-width: 760px) { .fgx-check ul.fgx-cols2 { grid-template-columns: 1fr; } }
.fgx-tag { margin: -0.3rem 0 0.7rem !important; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.92rem !important; color: var(--dark-wine, #721817) !important; }
.stacks-chips button { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.2; min-height: 2.6rem; border-radius: 12px; padding: 0.4rem 0.85rem; text-align: left; }
.stacks-chips .chip-k { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; }

/* ── Compact library cards ─────────────────────────────── */
.stacks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stacks-grid .rc { padding: 0.95rem 1rem 1rem; gap: 0.35rem; }
.stacks-grid .rc-thumb { margin: -0.95rem -1rem 0.45rem; aspect-ratio: 2 / 1; border-radius: 12px 12px 0 0; }
.stacks-grid .rc-ico { width: 24px; height: 24px; }
.stacks-grid .rc-ico svg { width: 14px; height: 14px; }
.stacks-grid .rc-kind { font-size: 0.6rem; letter-spacing: 0.1em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.stacks-grid .rc-title { font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stacks-grid .rc-desc { font-size: 0.8rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stacks-grid .rc-tags { margin-top: 0.2rem; }
.stacks-grid .rc-tag { font-size: 0.64rem; padding: 0.15rem 0.5rem; }
.stacks-grid .rc-cta { display: none; }
@media (max-width: 1000px) { .stacks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stacks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stacks-grid { grid-template-columns: 1fr; } }

/* ── Read shelf: a bookcase ────────────────────────────── */
.bookshelf { --cover-h: 210px; position: relative; padding: 2.2rem 1.5rem 0; border-radius: 14px 14px 6px 6px;
    background: radial-gradient(ellipse 55% 75% at 50% 70%, rgba(255,210,122,0.22), transparent 70%), linear-gradient(180deg, var(--twilight-indigo, #223554) 0%, var(--black-navy, #1A1A2E) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,210,122,0.08), inset 0 18px 40px -20px rgba(0,0,0,0.6); overflow: hidden; }
.bookshelf::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 9px); }
.bookshelf-row { position: relative; display: flex; flex-wrap: wrap; gap: 2rem 2.25rem; padding: 0 0.5rem; }
.bookshelf-row::after { content: ''; position: absolute; left: -2rem; right: -2rem; top: var(--cover-h); height: 16px;
    background: linear-gradient(180deg, #D08552 0%, var(--rust, #C3703D) 35%, #8A4C27 100%); box-shadow: 0 10px 18px -6px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,220,170,0.45); }
.book { position: relative; display: flex; flex-direction: column; align-items: center; width: calc(var(--cover-h) * 0.68); text-decoration: none; z-index: 1; }
.book-face { position: relative; display: block; height: var(--cover-h); width: 100%; transform-origin: bottom center; transition: transform .45s cubic-bezier(.34,1.4,.64,1), filter .4s; filter: drop-shadow(8px 6px 10px rgba(0,0,0,0.55)); }
.book-face img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: inset 4px 0 6px rgba(0,0,0,0.35); }
.book-face::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; border-radius: 2px 0 0 2px; background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(255,255,255,0.12) 60%, transparent); z-index: 2; pointer-events: none; }
.book-cloth { display: grid; place-items: center; height: 100%; padding: 12px; border-radius: 2px 4px 4px 2px;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.12), transparent 60%), var(--cloth); }
.book-gilt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; height: 100%; padding: 0.8rem 0.6rem;
    border: 1px solid rgba(232,199,122,0.75); outline: 1px solid rgba(232,199,122,0.35); outline-offset: 3px; text-align: center; }
.book-t { font-family: 'Libre Baskerville', serif; font-size: 0.9rem; line-height: 1.3; color: #E8C77A; text-shadow: 0 1px 0 rgba(0,0,0,0.4); }
.book-orn { color: #E8C77A; font-size: 0.7rem; opacity: 0.85; }
.book-plaque { display: grid; gap: 0.15rem; margin-top: 26px; padding-bottom: 1.5rem; text-align: center; }
.book-title { font-family: 'Libre Baskerville', serif; font-size: 0.86rem; line-height: 1.3; color: #F5E9D2; }
.book-meta { font-family: 'Open Sans', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232,199,122,0.75); }
.book:hover .book-face, .book:focus-visible .book-face { transform: translateY(-14px) rotate(-2deg); filter: drop-shadow(10px 18px 16px rgba(0,0,0,0.6)) drop-shadow(0 0 18px rgba(255,210,122,0.45)); }
.book:focus-visible { outline: none; }
.book:focus-visible .book-title { text-decoration: underline; }
.book-spark { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.book-spark i { position: absolute; bottom: 10%; width: 5px; height: 5px; border-radius: 50%; background: #FFE3A3; box-shadow: 0 0 8px 2px rgba(255,214,140,0.85); opacity: 0; }
.book-spark i:nth-child(1) { left: 18%; } .book-spark i:nth-child(2) { left: 55%; width: 4px; height: 4px; } .book-spark i:nth-child(3) { left: 82%; width: 3px; height: 3px; }
.book:hover .book-spark i { animation: book-rise 1.6s ease-out infinite; }
.book:hover .book-spark i:nth-child(2) { animation-delay: .4s; } .book:hover .book-spark i:nth-child(3) { animation-delay: .8s; }
@keyframes book-rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-130px) scale(1.1); } }
#shelfGrid:not(.stacks-grid) { display: block; }
@media (max-width: 600px) {
    .bookshelf { --cover-h: 170px; padding: 1.6rem 1rem 0; }
    .bookshelf-row { gap: 1.5rem 1.25rem; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .book-face { transition: none; }
    .book:hover .book-spark i { animation: none; }
}
.spine-set { display: flex; align-items: flex-end; gap: 3px; height: var(--cover-h); flex: 1 1 0; min-width: 0; overflow: hidden; padding-left: 0.5rem; }
.spine { flex: none; width: var(--w); height: calc(var(--cover-h) * var(--h)); border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, transparent 10%, rgba(232,199,122,0.75) 10% 11.5%, transparent 11.5% 14%, rgba(232,199,122,0.55) 14% 15%, transparent 15% 84%, rgba(232,199,122,0.55) 84% 85%, transparent 85%),
                linear-gradient(90deg, rgba(0,0,0,0.35), rgba(255,255,255,0.14) 35%, rgba(0,0,0,0.25)), var(--cloth);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25), 2px 0 4px rgba(0,0,0,0.35); }
.spine.lean { transform: rotate(9deg); transform-origin: bottom left; margin-left: 4px; }
.shelf-motes { position: absolute; inset: 0; pointer-events: none; }
.shelf-motes i { position: absolute; bottom: 20%; width: 3px; height: 3px; border-radius: 50%; background: #FFE3A3; box-shadow: 0 0 6px 1px rgba(255,214,140,0.7); opacity: 0; animation: mote-float var(--d) ease-in-out var(--dl) infinite; }
@keyframes mote-float { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .8; } 50% { transform: translate(12px, -90px); } 80% { opacity: .5; } 100% { opacity: 0; transform: translate(-6px, -170px); } }
@media (max-width: 600px) { .spine-set { display: none; } }
@media (prefers-reduced-motion: reduce) { .shelf-motes { display: none; } }
.book-a { font-family: 'Open Sans', sans-serif; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232,199,122,0.8); }

/* ── The journey page: hero calls to action, wing shelves, Through Me and As Me ── */
.res-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.9rem; }
.res-cta-alt { display: inline-flex; align-items: center; gap: 0.45rem; padding-bottom: 2px; border-bottom: 1.5px solid rgba(44,102,113,0.35); font-family: 'Open Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--stormy-teal, #2C6671); text-decoration: none; transition: color .2s, border-color .2s; }
.res-cta-alt:hover { color: var(--rust, #C3703D); border-color: var(--rust, #C3703D); }
.res-states a { color: inherit; text-decoration: none; transition: color .2s; }
.res-states a:hover { color: var(--rust, #C3703D); }

.wing-book { margin-top: 5.5rem; }
.wing-book .res-sub, .wing-shelf .res-sub { margin-bottom: 1.75rem; }
.wing-shelf { margin-top: 5rem; text-align: left; }
.wing-more { margin-top: 2.25rem; }
.wing-more-k { display: block; font-family: 'Open Sans', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stormy-teal, #2C6671); }
.wing-links { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wing-links a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: 999px; background: #FDFCF9; border: 1px solid rgba(26,26,46,0.12); font-family: 'Open Sans', sans-serif; font-size: 0.88rem; color: var(--black-navy, #1A1A2E); text-decoration: none; transition: border-color .2s, color .2s; }
.wing-links a span { font-size: 0.75rem; color: var(--rust, #C3703D); }
.wing-links a:hover { border-color: var(--stormy-teal, #2C6671); color: var(--stormy-teal, #2C6671); }
.wing-note { margin: 1.5rem 0 0.5rem; max-width: 640px; font-family: 'Open Sans', sans-serif; font-size: 0.98rem; line-height: 1.7; }
.wing-apps { margin: 0; padding-left: 1.2rem; font-family: 'Open Sans', sans-serif; font-size: 0.98rem; line-height: 1.8; }

/* The dark wings (Through Me, As Me): same parts, light on dark */
.res-through .res-sub, .res-asme .res-sub { color: var(--warm-white, #F5F2EC); }
.res-through .wing-more-k, .res-asme .wing-more-k { color: var(--bright-teal, #4FB8C8); }
.res-through .wing-links a, .res-asme .wing-links a { background: rgba(245,242,236,0.08); border-color: rgba(245,242,236,0.22); color: var(--warm-white, #F5F2EC); }
.res-through .wing-links a:hover, .res-asme .wing-links a:hover { border-color: var(--bright-teal, #4FB8C8); color: var(--bright-teal, #4FB8C8); }
.res-asme .wing-note, .res-asme .wing-apps { color: rgba(245,242,236,0.75); }
.wing-soon { margin-top: 4.5rem; }
.wing-soon-t { margin: 0; font-family: 'Libre Baskerville', serif; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; color: var(--warm-white, #F5F2EC); }
.wing-soon .through-form { margin-top: 1.5rem; }

/* As Me: the journey ends in deep night, picking up from the teal at the bottom of Through Me */
.res-asme { position: relative; overflow: hidden; padding: 7rem 2rem 8rem; text-align: center;
    background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(82,55,89,0.45), transparent 70%), linear-gradient(180deg, var(--stormy-teal, #2C6671) 0%, var(--twilight-indigo, #223554) 14%, var(--black-navy, #1A1A2E) 40%); }
.asme-twinkles { position: absolute; inset: 0; pointer-events: none; }
.asme-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.asme-inner > .through-heading, .asme-inner > .through-text { max-width: 640px; margin-left: auto; margin-right: auto; }
.res-asme .through-text { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.2rem; color: rgba(245,242,236,0.8); }
/* Wing bookshelves: one shelf that scrolls sideways, so a long list stays a single row of books on one plank */
.wing-shelf .bookshelf-row { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 1.25rem; scrollbar-width: thin; scrollbar-color: rgba(255,210,122,0.35) transparent;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.wing-shelf .bookshelf-row .book, .wing-shelf .bookshelf-row .spine-set { flex: none; scroll-snap-align: start; }
.wing-shelf .bookshelf-row::after { display: none; }
.wing-shelf .bookshelf::after { content: ''; position: absolute; left: 0; right: 0; top: calc(2.2rem + var(--cover-h)); height: 16px; z-index: 0;
    background: linear-gradient(180deg, #D08552 0%, var(--rust, #C3703D) 35%, #8A4C27 100%); box-shadow: 0 10px 18px -6px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,220,170,0.45); }

/* The 15 Commitments Book: its own warm white band inside the sage section (a trailhead table off the path), one Rust ask */
.wing-book { position: relative; margin-top: 6rem; padding: 4.5rem 0 4.75rem; background: var(--warm-white, #F5F2EC);
    box-shadow: 0 0 0 100vmax var(--warm-white, #F5F2EC); clip-path: inset(0 -100vmax); }
.wing-book::before, .wing-book::after { content: ''; position: absolute; left: -100vmax; right: -100vmax; height: 1px; background: rgba(26,26,46,0.1); }
.wing-book::before { top: 0; } .wing-book::after { bottom: 0; }
.wing-book .book-layout { grid-template-columns: 180px minmax(0, 1fr) 240px; gap: 3.5rem; }
.wing-book .book-cover-img { box-shadow: 0 18px 40px -12px rgba(26,26,46,0.35); }
.wing-book .book-edition-note { color: var(--stormy-teal, #2C6671); margin-bottom: 0.6rem; }
.book-title-full { margin: 0 0 0.6rem; font-family: 'Libre Baskerville', serif; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; color: var(--black-navy, #1A1A2E); }
.wing-book .book-formats { margin-bottom: 1.75rem; max-width: 520px; }
.book-buy { display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start; padding: 0.9rem 1.75rem; border-radius: 999px; background: var(--rust, #C3703D); color: #fff; text-decoration: none;
    font-family: 'Open Sans', sans-serif; font-size: 1rem; font-weight: 600; box-shadow: 0 10px 24px -14px rgba(195,112,61,0.9); transition: background .2s, transform .2s; }
.book-buy:hover { background: #A85A2C; transform: translateY(-1px); }
.book-buy span { transition: transform .2s; } .book-buy:hover span { transform: translateX(3px); }
.book-stores { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.1rem; margin: 1.1rem 0 2.25rem; font-family: 'Open Sans', sans-serif; font-size: 0.88rem; }
.book-stores span { color: rgba(26,26,46,0.5); }
.book-stores a { color: var(--black-navy, #1A1A2E); text-decoration: underline; text-decoration-color: rgba(26,26,46,0.25); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.book-stores a:hover { color: var(--stormy-teal, #2C6671); text-decoration-color: currentColor; }
.wing-book .book-guide-row { max-width: 520px; }
.wing-book .book-guide-label { font-size: 0.85rem; }
.wing-book .book-guide-link { color: var(--black-navy, #1A1A2E); text-decoration: underline; text-decoration-color: rgba(195,112,61,0.6); text-underline-offset: 3px; }
.wing-book .book-next { margin: 0; max-width: none; padding: 0.25rem 0 0 1.75rem; border: 0; border-left: 1px solid rgba(26,26,46,0.12); border-radius: 0; }
.wing-book .book-next-t { font-size: 1.25rem; }
.wing-book .book-next-d { font-size: 0.88rem; }
@media (max-width: 1000px) { .wing-book .book-layout { grid-template-columns: 160px minmax(0, 1fr); } .wing-book .book-next { grid-column: 2; padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid rgba(26,26,46,0.12); } }
@media (max-width: 760px) {
    .wing-book { margin-top: 4.5rem; padding: 3.25rem 0 3.5rem; }
    .wing-book .book-layout { grid-template-columns: 1fr; gap: 2rem; }
    .wing-book .book-cover-col { width: 150px; }
    .wing-book .book-next { grid-column: auto; }
}

/* Through Me (dusk): the dashed line from Groundwork turns into slow water. Books sit on the bank; the signup is a lantern by the river */
.res-through .wing-soon { margin-top: 2.5rem; }
.through-lantern { display: block; width: 34px; height: 48px; margin: 0 auto 1rem; overflow: visible; }
.through-lantern .lt-glow { opacity: .22; filter: blur(7px); animation: lt-flicker 3.2s ease-in-out infinite; }
.through-lantern .lt-flame { transform-origin: 20px 36px; animation: lt-flame 2.4s ease-in-out infinite; }
@keyframes lt-flicker { 0%, 100% { opacity: .2; } 40% { opacity: .32; } 60% { opacity: .24; } }
@keyframes lt-flame { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.92, 1.06); } }

/* As Me (night): a still lake that mirrors the sky. The horizon fades out where the words sit, so there is no line left to be above or below */
.res-asme { padding-top: 0; }
.asme-lake { position: relative; height: clamp(420px, 44vw, 560px); margin: 0 calc(50% - 50vw) 1rem; --hz: 56%; overflow: hidden; }
.asme-sky { position: absolute; left: 0; right: 0; pointer-events: none; }
.asme-sky { top: 0; height: var(--hz); }
.asme-words { position: absolute; left: 50%; bottom: calc(100% - var(--hz) + 1.25rem); width: min(640px, calc(100% - 2.5rem)); transform: translateX(-50%); z-index: 2; }
.asme-words .through-text { margin-bottom: 0; }
.asme-words .through-heading { margin-bottom: 1rem; }
.res-asme .wing-shelf { margin-top: 2rem; }
@media (max-width: 760px) {
    .asme-lake { height: 420px; --hz: 60%; }
}
@media (prefers-reduced-motion: reduce) {
    .through-lantern .lt-glow, .through-lantern .lt-flame { animation: none; }
}
.book-info { display: flex; flex-direction: column; min-width: 0; }

/* ── Books spine out, and the book you take down ───────── */
.bookshelf-row { gap: 34px 3px; align-items: flex-end; padding: 0 0.25rem 18px;
    background-image: linear-gradient(180deg, transparent 0 var(--cover-h), #D08552 var(--cover-h), var(--rust, #C3703D) calc(var(--cover-h) + 6px), #8A4C27 calc(var(--cover-h) + 16px), rgba(0,0,0,0.35) calc(var(--cover-h) + 16px), transparent calc(var(--cover-h) + 26px));
    background-size: 100% calc(var(--cover-h) + 34px); background-repeat: repeat-y; }
.bookshelf-row::after { display: none; }
.bookshelf { padding-bottom: 1.4rem; }
.spine-book { flex: none; display: flex; align-items: flex-end; height: var(--cover-h); width: var(--w); padding: 0; border: 0; background: none; cursor: pointer; position: relative; z-index: 1; }
.sb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; width: 100%; height: calc(var(--cover-h) * var(--h)); padding: 10px 0 9px; overflow: hidden;
    border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, rgba(0,0,0,0.28), rgba(255,255,255,0.16) 30%, rgba(255,255,255,0.04) 55%, rgba(0,0,0,0.22)), var(--bg); color: var(--fg);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), 2px 0 4px rgba(0,0,0,0.35); transition: transform .35s cubic-bezier(.34,1.4,.64,1), box-shadow .35s; }
.sb-band { flex: none; width: 70%; height: 2px; background: currentColor; opacity: 0.55; box-shadow: 0 4px 0 -0.5px currentColor; }
.sb-title { flex: 1 1 auto; min-height: 0; overflow: hidden; writing-mode: vertical-rl; font-family: 'Libre Baskerville', serif; font-size: 0.74rem; line-height: 1.15; letter-spacing: 0.01em; text-align: center; text-wrap: balance; }
.sb-title[data-long] { font-size: 0.64rem; }
.sb-author { flex: none; writing-mode: vertical-rl; font-family: 'Open Sans', sans-serif; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; max-height: 30%; overflow: hidden; }
.spine-book:hover .sb, .spine-book:focus-visible .sb { transform: translateY(-12px); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), 4px 8px 14px rgba(0,0,0,0.45), 0 0 16px rgba(255,210,122,0.4); }
.spine-book:focus-visible { outline: none; }
.spine-book:focus-visible .sb { outline: 2px solid #FFD27A; outline-offset: 2px; }
.spine-book.taken .sb { transform: translateY(-40px); opacity: 0; transition: transform .4s, opacity .3s; }
.spine-set { height: var(--cover-h); }
.wing-shelf .bookshelf-row { background-image: none; }

.tome-overlay { --pw: min(300px, 40vw); position: fixed; inset: 0; z-index: 10004; display: grid; place-items: center; perspective: 1800px;
    background: radial-gradient(ellipse at 50% 45%, rgba(34,53,84,0.55), rgba(26,26,46,0.9)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s; }
.tome-overlay[hidden] { display: none; }
.tome-overlay.in { opacity: 1; }
.tome-stage { transform: translate(var(--fx, 0), var(--fy, 0)) scale(0.35) rotateY(-85deg); opacity: 0; transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .4s; }
.tome-overlay.in .tome-stage { transform: none; opacity: 1; }
.tome { position: relative; width: var(--pw); height: calc(var(--pw) * 1.5); transform-style: preserve-3d; transition: transform .9s cubic-bezier(.65,0,.35,1); }
.tome-overlay.open .tome { transform: translateX(calc(var(--pw) / 2)); }
.tome-page, .tome-front, .tome-back { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; }
.tome-page { display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.4rem; background: linear-gradient(90deg, rgba(26,26,46,0.12), transparent 9%), #FAF8F4; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7); overflow-y: auto; }
.tome-cover { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.65,0,.35,1); z-index: 2; }
.tome-overlay.open .tome-cover { transform: rotateY(-180deg); }
.tome-front, .tome-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tome-front { box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7); background: #1A1A2E; }
.tome-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tome-front::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,0.4), rgba(255,255,255,0.15) 60%, transparent); z-index: 1; }
.tome-back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; text-align: center; border-radius: 8px 3px 3px 8px;
    background: radial-gradient(circle at 20% 25%, rgba(255,210,122,0.5) 0 1px, transparent 2px), radial-gradient(circle at 70% 60%, rgba(255,210,122,0.4) 0 1px, transparent 2px), radial-gradient(circle at 45% 85%, rgba(255,210,122,0.35) 0 1px, transparent 2px), linear-gradient(270deg, rgba(0,0,0,0.3), transparent 10%), var(--twilight-indigo, #223554);
    background-size: 46px 46px, 62px 62px, 38px 38px, 100% 100%, 100% 100%; }
.tome-orn { color: #E8C77A; font-size: 1.4rem; }
.tome-from { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1rem; color: #F5F2EC; }
.tome-way { font-family: 'Open Sans', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #E8C77A; }
.tome-k { font-family: 'Open Sans', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust, #C3703D); }
.tome-title { margin: 0.6rem 0 0.25rem; font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: 1.3rem; line-height: 1.25; color: var(--black-navy, #1A1A2E); }
.tome-author { margin: 0 0 1rem; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.9rem; color: var(--stormy-teal, #2C6671); }
.tome-blurb { margin: 0; font-family: 'Open Sans', sans-serif; font-size: 0.95rem; line-height: 1.7; color: var(--black-navy, #1A1A2E); }
.tome-placeholder { margin: 0.9rem 0 0; font-family: 'Open Sans', sans-serif; font-size: 0.72rem; font-style: italic; color: rgba(26,26,46,0.45); }
.tome-link { margin-top: auto; padding-top: 1.2rem; align-self: flex-start; font-family: 'Open Sans', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--rust, #C3703D); text-decoration: none; }
.tome-link:hover { text-decoration: underline; }
.tome-page > * { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.tome-overlay.open .tome-page > * { opacity: 1; transform: none; transition-delay: .6s; }
.tome-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245,242,236,0.35); background: rgba(26,26,46,0.4); color: #F5F2EC; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.tome-close:hover { background: rgba(26,26,46,0.7); }
.tome-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.tome-sparks i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #FFE3A3; box-shadow: 0 0 8px 2px rgba(255,214,140,0.85); opacity: 0; }
.tome-overlay.open .tome-sparks i { animation: tome-burst 1.1s ease-out .45s both; animation-delay: calc(.45s + var(--dl)); }
@keyframes tome-burst { 0% { opacity: 0; transform: rotate(var(--a)) translateX(0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scale(1); } }

@media (max-width: 720px) {
    .tome-overlay { --pw: min(320px, 82vw); }
    .tome-overlay.open .tome { transform: none; }
    .tome-overlay.open .tome-cover { opacity: 0; transition: transform .9s cubic-bezier(.65,0,.35,1), opacity .3s .6s; }
}
@media (max-width: 600px) { .bookshelf { --cover-h: 170px; } .sb-title { font-size: 0.66rem; } }
@media (prefers-reduced-motion: reduce) {
    .tome-stage, .tome, .tome-cover, .tome-page > *, .tome-overlay, .sb { transition: none !important; }
    .tome-overlay.open .tome-sparks i { animation: none; }
}
.wing-playlist { max-width: 720px; margin: 2.5rem 0 0; text-align: left; }
.wing-playlist iframe { display: block; border: 0; border-radius: 12px; box-shadow: 0 12px 30px -16px rgba(0,0,0,0.5); }
.ps a { text-decoration: none; }
a.pp-cta { display: inline-block; text-decoration: none; }

/* ── Commitment pages: the path carried along ──────────── */
.cm-trail { margin-top: 1.75rem; }
.cm-trail ol { position: relative; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.cm-stone { display: grid; place-items: center; width: 34px; height: 24px; border-radius: 50% / 55%; text-decoration: none;
    background: linear-gradient(180deg, #E3DFD6, #CFC9BD); box-shadow: inset 0 -2px 0 rgba(26,26,46,0.12), 0 2px 4px rgba(26,26,46,0.12);
    font-family: 'Libre Baskerville', serif; font-size: 0.72rem; color: rgba(26,26,46,0.7); transition: transform .2s, box-shadow .3s, background .3s; }
.cm-stone:hover { transform: translateY(-2px); }
.cm-stone.lit { background: radial-gradient(ellipse at center, #FFF0C8, #FFD27A 70%); color: #5a3a08; box-shadow: 0 0 0 1px rgba(227,161,58,0.6), 0 0 12px 3px rgba(255,196,84,0.6); }
.cm-stone.here { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rust, #C3703D); }
.cm-stone.here.lit { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rust, #C3703D), 0 0 16px 4px rgba(255,196,84,0.7); }
.cm-stone.just-lit { animation: cm-light-up .9s ease-out; }
@keyframes cm-light-up { 0% { transform: scale(1); } 40% { transform: scale(1.35); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rust, #C3703D), 0 0 30px 12px rgba(255,196,84,0.9); } 100% { transform: scale(1); } }
.cm-trail-note { margin: 0.9rem 0 0; font-family: 'Open Sans', sans-serif; font-size: 0.88rem; line-height: 1.6; color: rgba(26,26,46,0.7); max-width: 60ch; }
.cm-trail-note a { color: var(--stormy-teal, #2C6671); font-weight: 600; }
.cm-light { margin: 2.5rem 0 3rem; max-width: 720px; }
.cm-light-btn { display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left; font-family: 'Open Sans', sans-serif; font-size: 1rem; font-weight: 600; background: #fff; color: var(--black-navy, #1A1A2E); border: 2px solid rgba(26,26,46,0.14); border-radius: 12px; padding: 1rem 1.2rem; cursor: pointer; transition: border-color .2s, background .3s; }
.cm-light-btn:hover { border-color: #E3A13A; }
.cm-light-btn .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(26,26,46,0.25); display: grid; place-items: center; color: transparent; }
.cm-light-btn[aria-pressed="true"] { background: #FFF3CF; border-color: #E3A13A; }
.cm-light-btn[aria-pressed="true"] .dot { background: #E3A13A; border-color: #E3A13A; color: #fff; }
.cm-light-next { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(44,102,113,0.07); }
.cm-light-next[hidden] { display: none; }
.cm-lit-msg { margin: 0; font-family: 'Libre Baskerville', serif; font-size: 1.05rem; color: #8a5a10; }
.cm-next-stone { font-family: 'Open Sans', sans-serif; font-size: 0.92rem; font-weight: 600; color: #fff; background: var(--rust, #C3703D); padding: 0.6rem 1.1rem; border-radius: 999px; text-decoration: none; }
a.cm-next-stone:hover { background: #a85e31; }
span.cm-next-stone { background: none; color: var(--black-navy, #1A1A2E); padding: 0; }
.cm-to-path { font-family: 'Open Sans', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--stormy-teal, #2C6671); }
@media (prefers-reduced-motion: reduce) { .cm-stone.just-lit { animation: none; } }

/* ── Through Me: letting go, with the leaves and the wind ── */
.ridge-to-dusk { --ridge-to: #F1E4D6; --ridge-back-c: rgba(169,177,143,0.45); }
.res-through { background: linear-gradient(180deg, #F1E4D6 0%, #E8D2C0 30%, #DCB194 56%, #C9A07F 66%, #5E8990 82%, var(--stormy-teal, #2C6671) 100%); }
.res-through .through-heading { color: var(--black-navy, #1A1A2E); }
.res-through > .through-inner > .through-text { color: rgba(26,26,46,0.75); }
.res-through .res-sub { color: var(--black-navy, #1A1A2E); }
.res-through .wing-more-k { color: #7F4E37; }
.res-through .wing-links a { background: rgba(253,252,249,0.55); border-color: rgba(127,78,55,0.3); color: var(--black-navy, #1A1A2E); }
.res-through .wing-links a:hover { border-color: var(--rust, #C3703D); color: #7F4E37; }

.through-leaves { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.leaf { position: absolute; top: 0; left: 0; opacity: 0; will-change: transform, opacity; }
.leaf i { display: block; animation: leaf-sway var(--sw) ease-in-out infinite alternate; }
.leaf svg { display: block; width: 100%; height: 100%; animation: leaf-flutter calc(var(--sw) * 0.7) ease-in-out infinite alternate; filter: drop-shadow(0 3px 3px rgba(94,60,52,0.18)); }
@keyframes leaf-sway { from { transform: translateX(calc(var(--dx) * -1)) rotate(-18deg); } to { transform: translateX(var(--dx)) rotate(22deg); } }
@keyframes leaf-flutter { from { transform: rotateY(0deg) rotateX(10deg); } to { transform: rotateY(65deg) rotateX(-20deg); } }

.through-wind { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.through-leaf { display: block; width: 34px; height: 34px; margin: 0 auto 1rem; animation: through-leaf-rock 4.5s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes through-leaf-rock { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(16deg) translateY(4px); } }

@media (max-width: 600px) { .leaf:nth-child(n+13) { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .through-leaves { display: none; }
    .through-wind, .through-leaf { animation: none; }
    .through-wind { display: none; }
}

/* Spine lettering, matched to each cover's typography (fonts set per book in tools/build_spines.py) */
.sb[data-case="upper"] .sb-title { text-transform: uppercase; letter-spacing: 0.04em; }
.sb[data-case="lower"] .sb-title { text-transform: lowercase; }
.sf-oswald .sb-title { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em; }
.sf-geo .sb-title { font-family: 'Montserrat', 'Helvetica Neue', sans-serif; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.14em; }
.sf-geo-light .sb-title { font-family: 'Montserrat', 'Helvetica Neue', sans-serif; font-weight: 300; font-size: 0.7rem; letter-spacing: 0.1em; }
.sf-geo-heavy .sb-title { font-family: 'Montserrat', 'Helvetica Neue', sans-serif; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.06em; }
.sf-rounded .sb-title { font-family: 'Nunito', 'Arial Rounded MT Bold', sans-serif; font-weight: 800; font-size: 0.8rem; letter-spacing: 0; }
.sf-slab .sb-title { font-family: 'Roboto Slab', 'Rockwell', serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; }
.sf-cinzel .sb-title { font-family: 'Cinzel', 'Trajan Pro', serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; }
.sf-garamond .sb-title { font-family: 'EB Garamond', Garamond, serif; font-weight: 500; font-size: 0.86rem; letter-spacing: 0.02em; }
.sf-garamond-italic .sb-title { font-family: 'EB Garamond', Garamond, serif; font-style: italic; font-weight: 500; font-size: 0.88rem; }
.sb .sb-title[data-long] { font-size: 0.64rem; }

/* Through Me wind: gusts arise, sweep across in a few brushstrokes, curl, and vanish */
.through-wind .stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300 2000; stroke-dashoffset: 300; }
.through-wind .c1 { stroke: rgba(253,252,249,0.9); stroke-width: 3.2; }
.through-wind .c2 { stroke: rgba(79,184,200,0.55); stroke-width: 2.2; stroke-dasharray: 120 14 60 10 90 2000; }
.through-wind .c3 { stroke: rgba(208,144,105,0.6); stroke-width: 2.6; stroke-dasharray: 80 12 140 16 50 2000; }
.through-wind .gust { opacity: 0; animation: gust-life 12s ease-in-out infinite; }
.through-wind .gust .stroke { animation: gust-sweep 12s ease-in-out infinite; }
.through-wind .g1, .through-wind .g1 .stroke { animation-duration: 11s; animation-delay: -1s; }
.through-wind .g2, .through-wind .g2 .stroke { animation-duration: 13s; animation-delay: -6s; }
.through-wind .g3, .through-wind .g3 .stroke { animation-duration: 12s; animation-delay: -3.5s; }
.through-wind .g4, .through-wind .g4 .stroke { animation-duration: 14s; animation-delay: -9s; }
.through-wind .g5, .through-wind .g5 .stroke { animation-duration: 10s; animation-delay: -4.5s; }
.through-wind .g6, .through-wind .g6 .stroke { animation-duration: 15s; animation-delay: -12s; }
@keyframes gust-sweep { 0% { stroke-dashoffset: 300; } 78%, 100% { stroke-dashoffset: -1000; } }
@keyframes gust-life { 0% { opacity: 0; } 14% { opacity: 1; } 55% { opacity: .9; } 78%, 100% { opacity: 0; } }
.through-tree { position: absolute; top: -34px; right: 0; width: min(450px, 34vw); height: auto; z-index: 1; pointer-events: none; overflow: visible; }
.tree-bough { transform-origin: 600px 20px; animation: bough-sway 9s ease-in-out infinite alternate; }
.tree-bough path { fill: none; stroke: #5E3C34; stroke-linecap: round; stroke-linejoin: round; }
.tree-bough .b1 { stroke-width: 13; }
.tree-bough .b2 { stroke-width: 7; }
.tree-bough .b3 { stroke-width: 3.5; }
@keyframes bough-sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.6deg); } }
@media (max-width: 600px) { .through-tree { width: 78vw; opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .tree-bough { animation: none; } }

/* Spine titles are fitted in script: one line, shrunk to fit; two lines only as a last resort */
.sb-title { white-space: nowrap; }
.sb-title.wrap2 { white-space: normal; }

/* As Me: the vast night sky */
.asme-lake { height: clamp(520px, 58vw, 760px); --hz: 64%; }
.star-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.star-dust.field { z-index: 0; opacity: .8; }
.asme-sky .star-dust { z-index: 0; }
.aurora { position: absolute; inset: -6% -6% 18% -6%; pointer-events: none; mix-blend-mode: screen; opacity: 0; filter: blur(7px); animation: aurora-cycle 46s ease-in-out -9s infinite; }
.aurora i { position: absolute; top: 2%; height: 88%; border-radius: 50% 50% 45% 45% / 30% 30% 70% 70%;
    background: linear-gradient(180deg, transparent 0%, rgba(82,55,89,0.35) 12%, rgba(79,184,200,0.55) 40%, rgba(169,177,143,0.5) 68%, transparent 100%);
    -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 10px, rgba(0,0,0,0.35) 10px 19px), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-composite: source-in; mask-image: repeating-linear-gradient(90deg, #000 0 10px, rgba(0,0,0,0.35) 10px 19px), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-composite: intersect;
    animation: aurora-wave 13s ease-in-out infinite alternate; }
.aurora .a1 { left: 2%; width: 46%; transform: skewX(-22deg); }
.aurora .a2 { left: 30%; width: 44%; top: 0; height: 80%; animation-duration: 17s; animation-delay: -6s; opacity: .85; }
.aurora .a3 { left: 58%; width: 40%; top: 8%; height: 76%; animation-duration: 11s; animation-delay: -3s; opacity: .7; }
@keyframes aurora-cycle { 0%, 14% { opacity: 0; } 30% { opacity: .9; } 46% { opacity: .75; } 62%, 100% { opacity: 0; } }
@keyframes aurora-wave { from { transform: skewX(-22deg) translateX(-5%) scaleY(1); } to { transform: skewX(-6deg) translateX(6%) scaleY(1.14); } }
.shooting { position: absolute; width: 120px; height: 1.5px; border-radius: 2px; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, rgba(255,252,245,0), rgba(255,252,245,0.95)); transform: rotate(18deg);
    animation: shooting 13s ease-out 4s infinite; }
@keyframes shooting { 0% { opacity: 0; transform: rotate(18deg) translateX(-60px); } 1% { opacity: 1; } 6% { opacity: 0; transform: rotate(18deg) translateX(260px); } 100% { opacity: 0; transform: rotate(18deg) translateX(260px); } }
@media (max-width: 600px) { .asme-lake { height: 520px; --hz: 62%; } }
@media (prefers-reduced-motion: reduce) { .aurora { animation: none; opacity: .5; } .aurora i, .shooting { animation: none; } .shooting { display: none; } }

/* Tree on the left; leaves mostly drop, now and then one is caught by the wind */
.through-tree { right: auto; left: 0; transform: scaleX(-1); }
.playlist-note { margin: -0.4rem 0 0.9rem; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.95rem; color: rgba(26,26,46,0.65); }
.playlist-note em { font-style: normal; font-weight: 700; color: var(--dark-wine, #721817); }

/* Each wing's bookcase takes the mood of its section */
#shelfByMe .bookshelf { background: radial-gradient(ellipse 55% 75% at 50% 70%, rgba(255,226,170,0.26), transparent 70%), linear-gradient(180deg, #285764 0%, #213849 100%); }
#shelfThroughMe .bookshelf { background: radial-gradient(ellipse 60% 80% at 30% 75%, rgba(255,210,150,0.3), transparent 70%), linear-gradient(180deg, #7F4E37 0%, #5E3C34 100%); }
#shelfAsMe .bookshelf { background:
    radial-gradient(circle at 12% 18%, rgba(255,252,245,0.9) 0 1px, transparent 1.6px), radial-gradient(circle at 34% 9%, rgba(255,252,245,0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 57% 24%, rgba(214,232,255,0.8) 0 1.2px, transparent 1.8px), radial-gradient(circle at 76% 12%, rgba(255,252,245,0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 91% 30%, rgba(255,226,180,0.7) 0 1px, transparent 1.6px), radial-gradient(circle at 46% 38%, rgba(255,252,245,0.5) 0 .8px, transparent 1.4px),
    radial-gradient(ellipse 70% 45% at 60% 0%, rgba(79,184,200,0.28), transparent 70%), radial-gradient(ellipse 50% 40% at 25% 5%, rgba(169,177,143,0.22), transparent 70%),
    linear-gradient(180deg, #1D253D 0%, #0F0F1B 100%); }

/* As Me: stronger, longer northern lights */
.aurora { opacity: 0; filter: blur(5px); animation: aurora-cycle 40s ease-in-out -6s infinite; inset: -8% -8% 12% -8%; }
.aurora i { background: linear-gradient(180deg, transparent 0%, rgba(82,55,89,0.5) 10%, rgba(79,184,200,0.85) 38%, rgba(169,177,143,0.75) 64%, rgba(79,184,200,0.25) 86%, transparent 100%); }
.aurora .a1 { width: 52%; } .aurora .a2 { width: 50%; opacity: 1; } .aurora .a3 { width: 46%; opacity: .9; }
.aurora::after { content: ''; position: absolute; left: 18%; top: 4%; width: 64%; height: 70%; border-radius: 50%;
    background: radial-gradient(ellipse at 50% 60%, rgba(79,184,200,0.35), transparent 70%); animation: aurora-wave 19s ease-in-out infinite alternate-reverse; }
@keyframes aurora-cycle { 0%, 8% { opacity: 0; } 22% { opacity: 1; } 50% { opacity: .85; } 66% { opacity: 1; } 80%, 100% { opacity: 0; } }


/* Softer aurora rays */
.aurora i { -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 16px, rgba(0,0,0,0.7) 16px 26px), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    mask-image: repeating-linear-gradient(90deg, #000 0 16px, rgba(0,0,0,0.7) 16px 26px), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.aurora { filter: blur(9px); }

/* To Me: the arena crowd, phones and lighters up for the big ballad */
.todo-concert { height: 130px; margin: 0 0 0.8rem; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px -16px rgba(0,0,0,0.5); }
.todo-concert svg { display: block; width: 100%; height: 100%; }
.todo-concert .arm { animation: crowd-sway var(--d) ease-in-out var(--dl) infinite alternate; }
@keyframes crowd-sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.todo-concert .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: lighter 0.9s ease-in-out infinite alternate; }
@keyframes lighter { from { transform: scale(1, 1); } to { transform: scale(.8, 1.2); } }
.todo-concert .beam { transform-box: fill-box; transform-origin: 50% 0; animation: beam-sweep 7s ease-in-out infinite alternate; }
.todo-concert .beam.b2 { animation-duration: 9s; animation-direction: alternate-reverse; }
.todo-concert .beam.b3 { animation-duration: 5.5s; }
@keyframes beam-sweep { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .todo-concert .arm, .todo-concert .flame, .todo-concert .beam { animation: none; } }
.path-preview { display: flex; justify-content: center; padding: 1.75rem 0 2rem; border-bottom: 0; }
.path-preview .pp-cta { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.6rem; border-radius: 999px; font-size: 1rem; }
.pp-name { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: 0.92rem; padding-left: 0.75rem; border-left: 1px solid rgba(255,255,255,0.45); }

/* Let the last decorative spine lean without being clipped */
.spine-set { overflow: visible; padding-right: 44px; }


/* Through Me fades into dusk; As Me is the night sky over dark hills */
.res-through { background: linear-gradient(180deg, #F1E4D6 0%, #E8D2C0 28%, #DCB194 52%, #C9A07F 64%, #9C8189 76%, #57647A 88%, var(--twilight-indigo, #223554) 100%); }
.res-asme { background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(82,55,89,0.45), transparent 70%), linear-gradient(180deg, var(--twilight-indigo, #223554) 0%, #1D253D 18%, var(--black-navy, #1A1A2E) 45%); }
.asme-lake { --hz: 100%; height: clamp(560px, 62vw, 820px); }
.asme-words { bottom: 34%; }
.asme-land { --ridge-to: #12121F; --ridge-back-c: rgba(34,53,84,0.95); height: 120px; z-index: 1; }
@media (max-width: 600px) { .asme-lake { height: 560px; } .asme-land { height: 70px; } }
