/* ============================================================
   thethird.quest — Swiss occult folio
   Palette: Abyss / Gold / Parchment
   ============================================================ */

:root {
    /* Primary */
    --abyss:        #0A0A0F;
    --midnight:     #111118;
    --gold:         #C9A84C;
    --gold-deep:    #8A7A3C;
    --gold-wheat:   #A8986C;
    --parchment:    #D4CFC8;
    --stone:        #6B6560;

    /* Mesh tints */
    --ink-navy:     #1A1A28;
    --shadow-plum:  #2A1A30;
    --abyssal-teal: #0D1A1A;

    /* Layout */
    --grid-gutter:  24px;
    --grid-cols:    8;

    /* Typography */
    --font-display: "Libre Baskerville", "Lora", "Times New Roman", serif;
    --font-body:    "DM Sans", "Inter", system-ui, sans-serif;
    --font-mono:    "Space Mono", "Space", "Courier New", monospace;

    /* Spring easing */
    --spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html,
body {
    background: var(--abyss);
    color: var(--parchment);
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

/* Page-wide vignette and slow ambient hue */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.04), transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(42, 26, 48, 0.20), transparent 60%),
        linear-gradient(180deg, var(--abyss) 0%, #07070C 100%);
}

/* ============================================================
   SWISS GRID GUIDES (ghostly scaffold)
   ============================================================ */
.grid-guides {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: var(--grid-gutter);
    padding: 0 64px;
    opacity: 0;
    transition: opacity 1600ms ease;
}

.grid-guides.is-visible {
    opacity: 1;
}

.grid-guides .guide {
    position: relative;
    height: 100%;
}

.grid-guides .guide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(201, 168, 76, 0) 0%,
        rgba(201, 168, 76, 0.04) 8%,
        rgba(201, 168, 76, 0.04) 92%,
        rgba(201, 168, 76, 0) 100%
    );
}

/* Closing sequence fades the grid back out */
body.is-closing .grid-guides {
    opacity: 0;
}

/* ============================================================
   PARALLAX ORB LAYER
   ============================================================ */
.orb-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    perspective: 1000px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 2400ms ease;
    transform: translate3d(var(--ox, 0), var(--oy, 0), 0);
}

.orb-layer.is-visible .orb {
    opacity: var(--orb-opacity, 0.85);
}

.orb-1 {
    --orb-opacity: 0.9;
    width: 360px;
    height: 360px;
    top: 8vh;
    right: -60px;
    background: radial-gradient(circle at 35% 35%,
        rgba(201, 168, 76, 0.18) 0%,
        rgba(42, 26, 48, 0.6) 35%,
        rgba(26, 26, 40, 0.9) 70%,
        rgba(10, 10, 15, 0) 100%);
    animation: drift-a 28s ease-in-out infinite;
}

.orb-2 {
    --orb-opacity: 0.75;
    width: 280px;
    height: 280px;
    top: 60vh;
    right: 6%;
    background: radial-gradient(circle at 50% 40%,
        rgba(13, 26, 26, 0.7) 0%,
        rgba(26, 26, 40, 0.7) 50%,
        rgba(10, 10, 15, 0) 100%);
    animation: drift-b 36s ease-in-out infinite;
}

.orb-3 {
    --orb-opacity: 0.6;
    width: 220px;
    height: 220px;
    top: 130vh;
    right: -40px;
    background: radial-gradient(circle at 50% 50%,
        rgba(201, 168, 76, 0.12) 0%,
        rgba(42, 26, 48, 0.5) 40%,
        rgba(10, 10, 15, 0) 100%);
    animation: drift-c 32s ease-in-out infinite;
}

.orb-4 {
    --orb-opacity: 0.7;
    width: 320px;
    height: 320px;
    top: 220vh;
    right: 4%;
    background: radial-gradient(circle at 30% 70%,
        rgba(26, 26, 40, 0.85) 0%,
        rgba(13, 26, 26, 0.6) 40%,
        rgba(10, 10, 15, 0) 100%);
    animation: drift-a 30s ease-in-out infinite reverse;
}

.orb-5 {
    --orb-opacity: 0.55;
    width: 240px;
    height: 240px;
    top: 320vh;
    right: -80px;
    background: radial-gradient(circle at 50% 50%,
        rgba(42, 26, 48, 0.9) 0%,
        rgba(26, 26, 40, 0.6) 50%,
        rgba(10, 10, 15, 0) 100%);
    animation: drift-b 26s ease-in-out infinite;
}

.orb-6 {
    --orb-opacity: 0.65;
    width: 380px;
    height: 380px;
    top: 420vh;
    right: -100px;
    background: radial-gradient(circle at 60% 40%,
        rgba(201, 168, 76, 0.15) 0%,
        rgba(13, 26, 26, 0.5) 40%,
        rgba(26, 26, 40, 0.8) 70%,
        rgba(10, 10, 15, 0) 100%);
    animation: drift-c 38s ease-in-out infinite;
}

.orb-7 {
    --orb-opacity: 0.5;
    width: 280px;
    height: 280px;
    top: 520vh;
    right: 2%;
    background: radial-gradient(circle at 50% 50%,
        rgba(42, 26, 48, 0.7) 0%,
        rgba(26, 26, 40, 0.55) 50%,
        rgba(10, 10, 15, 0) 100%);
    animation: drift-a 34s ease-in-out infinite reverse;
}

@keyframes drift-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(-30px, 24px, 0) scale(1.05); }
    66%      { transform: translate3d(18px, -32px, 0) scale(0.97); }
}

@keyframes drift-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(28px, 36px, 0) scale(1.06); }
}

@keyframes drift-c {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    25%      { transform: translate3d(20px, -20px, 0) scale(1.03); }
    75%      { transform: translate3d(-24px, 26px, 0) scale(0.98); }
}

/* Convergence on the closing sequence */
body.is-closing .orb {
    transition: transform 4s ease, opacity 4s ease;
    animation-play-state: paused;
}

body.is-closing .orb-1 { transform: translate3d(-22vw, 18vh, 0) scale(0.5); opacity: 0.3; }
body.is-closing .orb-2 { transform: translate3d(-30vw, -8vh, 0) scale(0.4); opacity: 0.25; }
body.is-closing .orb-3 { transform: translate3d(-18vw, -22vh, 0) scale(0.45); opacity: 0.3; }
body.is-closing .orb-4 { transform: translate3d(-26vw, -4vh, 0) scale(0.55); opacity: 0.35; }
body.is-closing .orb-5 { transform: translate3d(-12vw, -14vh, 0) scale(0.45); opacity: 0.25; }
body.is-closing .orb-6 { transform: translate3d(-32vw, 10vh, 0) scale(0.55); opacity: 0.35; }
body.is-closing .orb-7 { transform: translate3d(-22vw, -18vh, 0) scale(0.4); opacity: 0.3; }

/* ============================================================
   BUBBLE NAVIGATION (left edge / mobile bottom)
   ============================================================ */
.bubble-nav {
    position: fixed;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 50;
    opacity: 0;
    transition: opacity 1800ms ease 1200ms;
}

.bubble-nav.is-visible {
    opacity: 1;
}

.bubble {
    position: relative;
    display: flex;
    align-items: center;
    width: 14px;
    height: 14px;
    text-decoration: none;
    color: var(--gold);
    transition: transform 0.4s var(--spring);
}

.bubble-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.55);
    background: transparent;
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
    transition:
        background 0.4s var(--spring),
        border-color 0.4s var(--spring),
        box-shadow 0.6s ease,
        transform 0.4s var(--spring);
}

.bubble.is-active .bubble-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 14px 2px rgba(201, 168, 76, 0.45);
}

.bubble:hover {
    transform: scale(1.3);
}

.bubble-label {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-wheat);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s var(--spring);
}

.bubble:hover .bubble-label,
.bubble.is-active .bubble-label {
    opacity: 0.9;
    transform: translateY(-50%) translateX(0);
}

/* ============================================================
   REDACTION TOOLTIP
   ============================================================ */
.redaction-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    background: var(--abyss);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    z-index: 200;
    transition: opacity 0.18s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.redaction-tooltip.is-visible {
    opacity: 1;
}

/* ============================================================
   DOSSIER MAIN — GRID
   ============================================================ */
.dossier {
    position: relative;
    z-index: 5;
    padding: 0 64px;
    max-width: 100%;
}

/* The chapter is the 8-col swiss grid; content lives in cols 2-6 */
.chapter {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    column-gap: var(--grid-gutter);
    min-height: 100vh;
    padding: 96px 0 80px;
}

/* ============================================================
   COVER (chapter 0)
   ============================================================ */
.cover {
    align-content: center;
    align-items: center;
    min-height: 100vh;
}

.cover-meta {
    grid-column: 2 / span 5;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stone);
    align-self: start;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 168, 76, 0.18);
    opacity: 0;
    animation: fadeUp 1.4s ease forwards 0.4s;
}

.cover-meta .meta-line + .meta-line {
    text-align: right;
}

.cover-stage {
    grid-column: 2 / span 5;
    grid-row: 2;
    text-align: center;
    align-self: center;
    padding: 6vh 0;
}

.cover-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.0;
    letter-spacing: 0.04em;
    font-size: clamp(3rem, 9vw, 7.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em 0.6em;
}

.cover-title .word {
    display: inline-flex;
}

.cover-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-12px);
    will-change: transform, opacity;
    text-shadow: 0 0 22px rgba(201, 168, 76, 0.18);
}

.cover-title.is-staggered .char {
    animation: charDrop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--char-index, 0) * 80ms + 1100ms);
}

@keyframes charDrop {
    0%   { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cover-subtitle {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 2.4s;
}

.dot-line {
    flex: 0 0 90px;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(201, 168, 76, 0) 0%,
        rgba(201, 168, 76, 0.55) 50%,
        rgba(201, 168, 76, 0) 100%);
}

.cover-subtitle-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-wheat);
}

.cover-tag {
    margin-top: 22px;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-wheat);
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    letter-spacing: 0.03em;
    opacity: 0;
    animation: fadeIn 1.4s ease forwards 2.8s;
}

/* Scroll indicator */
.scroll-indicator {
    grid-column: 2 / span 5;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 3.4s;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 0;
    background: linear-gradient(180deg,
        rgba(201, 168, 76, 0.6) 0%,
        rgba(201, 168, 76, 0) 100%);
    animation: lineDraw 1.4s ease forwards 3.0s;
}

@keyframes lineDraw {
    from { height: 0; }
    to   { height: 64px; }
}

.scroll-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.55);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bubblePulse 2.4s ease-in-out infinite;
}

@keyframes bubblePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.0); transform: translateY(0); }
    50%      { box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.0); transform: translateY(3px); }
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--stone);
}

/* Cover corners */
.cover-corner {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1.4s ease forwards 1.6s;
}

.cover-corner.top-left    { top: 28px; left: 28px; }
.cover-corner.top-right   { top: 28px; right: 28px; }
.cover-corner.bottom-left { bottom: 28px; left: 28px; }
.cover-corner.bottom-right{ bottom: 28px; right: 28px; flex-direction: row-reverse; }

.corner-line {
    width: 36px;
    height: 1px;
    background: rgba(201, 168, 76, 0.45);
}

/* ============================================================
   F-CHAPTERS (1-5)
   ============================================================ */
.f-chapter {
    align-content: start;
    padding: 14vh 0 12vh;
}

.gutter-label {
    grid-column: 1 / span 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    padding-right: 12px;
    border-right: 1px solid rgba(201, 168, 76, 0.10);
    margin-top: 8px;
    text-align: right;
}

.gutter-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.gutter-meta {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
}

.chapter-head {
    grid-column: 2 / span 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 56px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
    position: relative;
}

.chapter-head::before {
    /* Bubble cluster to the left of the heading */
    content: "";
    position: absolute;
    left: -36px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(201, 168, 76, 0.5) 0%, rgba(201, 168, 76, 0) 70%),
        radial-gradient(circle, rgba(201, 168, 76, 0.3) 0%, rgba(201, 168, 76, 0) 70%);
    background-size: 8px 8px, 14px 14px;
    background-repeat: no-repeat;
    background-position: 0 0, 6px 6px;
}

.chapter-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--gold-deep);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    letter-spacing: 0.04em;
    line-height: 1;
}

.chapter-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    max-width: 22ch;
}

.chapter-sub {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-wheat);
    font-size: clamp(1.05rem, 1.8vw, 1.5rem);
    letter-spacing: 0.03em;
    line-height: 1.4;
    max-width: 36ch;
}

/* Two-column body */
.chapter-body.two-col {
    grid-column: 2 / span 5;
    column-count: 2;
    column-gap: 56px;
    column-rule: 1px solid rgba(201, 168, 76, 0.08);
}

.chapter-body p {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--parchment);
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
    text-align: justify;
    hyphens: auto;
    margin-bottom: 1.4em;
    break-inside: avoid-column;
    border-left: 2px solid transparent;
    padding-left: 14px;
    margin-left: -14px;
    transition: border-left-color 320ms ease, color 320ms ease;
}

.chapter-body p:hover {
    border-left-color: rgba(201, 168, 76, 0.3);
    color: #E8E2D8;
}

.chapter-body p.quote {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-wheat);
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.5;
    text-align: left;
    letter-spacing: 0.02em;
    border-left: 2px solid rgba(201, 168, 76, 0.4);
    padding: 0 0 0 18px;
    margin: 0 0 1.4em 0;
    break-inside: avoid-column;
}

/* Bubble list */
.bubble-list {
    list-style: none;
    margin: 0 0 1.4em 0;
    padding: 0;
    break-inside: avoid-column;
}

.bubble-list li {
    position: relative;
    padding: 0.25em 0 0.25em 26px;
    color: var(--parchment);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.6;
}

.bubble-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.85em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.25);
}

.bubble-list li:nth-child(2)::before { opacity: 0.4; }
.bubble-list li:nth-child(3)::before { opacity: 0.25; }

/* Redacted block */
.redacted {
    position: relative;
    display: inline-block;
    color: transparent;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 2px;
    padding: 0 4px;
    margin: 0 1px;
    cursor: help;
    transition: background 240ms ease, box-shadow 240ms ease;
    user-select: none;
    line-height: inherit;
    /* show as bar */
    text-shadow: none;
}

.redacted:hover {
    background: rgba(201, 168, 76, 0.28);
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35);
}

/* Chapter corner */
.chapter-corner {
    grid-column: 2 / span 5;
    margin-top: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
}

.chapter-corner .corner-line {
    width: 64px;
}

/* ============================================================
   CHAPTER DIVIDER
   ============================================================ */
.chapter-divider {
    position: relative;
    height: 60px;
    background: var(--abyss);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.divider-rule {
    width: clamp(220px, 40vw, 480px);
    height: 1px;
    background: rgba(201, 168, 76, 0.4);
}

.divider-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.divider-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.55);
}

.divider-dots i.gap {
    width: 14px;
    height: 4px;
    background: transparent;
}

/* ============================================================
   INTERSTITIAL (every third break)
   ============================================================ */
.interstitial {
    position: relative;
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 5;
    padding: 0 64px;
}

.interstitial::before,
.interstitial::after {
    content: "";
    position: absolute;
    width: 1px;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0) 0%, rgba(201, 168, 76, 0.18) 50%, rgba(201, 168, 76, 0) 100%);
}

.interstitial::before { top: 0; bottom: 50%; }
.interstitial::after  { top: 50%; bottom: 0; }

.interstitial-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
}

.interstitial-text {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-wheat);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    letter-spacing: 0.03em;
    text-align: center;
    max-width: 36ch;
    opacity: 0.85;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing {
    align-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.closing-stage {
    grid-column: 2 / span 5;
    text-align: center;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 56px;
    align-items: center;
}

.closing-question {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold);
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: 0.03em;
    line-height: 1.4;
    max-width: 30ch;
}

.closing-triangle {
    position: relative;
    width: 120px;
    height: 110px;
}

.t-bubble {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px 2px rgba(201, 168, 76, 0.45);
    animation: tBubblePulse 4s ease-in-out infinite;
}

.t-bubble.t-1 { top: 0;     left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.t-bubble.t-2 { bottom: 0;  left: 0;                                animation-delay: 0.6s; }
.t-bubble.t-3 { bottom: 0;  right: 0;                               animation-delay: 1.2s; }

@keyframes tBubblePulse {
    0%, 100% { box-shadow: 0 0 14px 2px rgba(201, 168, 76, 0.30); transform: translateX(var(--tx, 0)) scale(1); }
    50%      { box-shadow: 0 0 28px 6px rgba(201, 168, 76, 0.55); transform: translateX(var(--tx, 0)) scale(1.08); }
}

.closing-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stone);
}

.closing-corner {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    opacity: 0.7;
}

/* ============================================================
   SECTION REVEAL ANIMATION
   ============================================================ */
.f-chapter {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.f-chapter.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.chapter-head {
    transition: box-shadow 0.6s ease;
}

.chapter-head.is-flashed {
    box-shadow: -10px 0 0 -8px var(--gold);
    animation: flashGold 0.8s ease;
}

@keyframes flashGold {
    0%   { box-shadow: -10px 0 0 -8px rgba(201, 168, 76, 0); }
    30%  { box-shadow: -10px 0 0 -3px rgba(201, 168, 76, 0.7); }
    100% { box-shadow: -10px 0 0 -8px rgba(201, 168, 76, 0); }
}

/* ============================================================
   GENERIC HELPERS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--abyss);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .grid-guides { display: none; }
    .dossier { padding: 0 24px; }

    .chapter {
        grid-template-columns: 1fr;
        column-gap: 0;
        padding: 80px 0 60px;
    }

    .gutter-label {
        grid-column: 1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 14px;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid rgba(201, 168, 76, 0.10);
        padding: 0 0 12px 0;
        margin-bottom: 24px;
    }

    .chapter-head,
    .chapter-body.two-col,
    .chapter-corner,
    .cover-meta,
    .cover-stage,
    .scroll-indicator,
    .closing-stage {
        grid-column: 1;
    }

    .chapter-body.two-col {
        column-count: 1;
        column-gap: 0;
    }

    .chapter-head::before { display: none; }

    .cover-meta {
        flex-direction: column;
        gap: 6px;
        text-align: left;
    }
    .cover-meta .meta-line + .meta-line { text-align: left; }

    .cover-corner.top-left,
    .cover-corner.top-right,
    .cover-corner.bottom-left,
    .cover-corner.bottom-right {
        position: relative;
        top: auto; left: auto; right: auto; bottom: auto;
    }
    .cover-corner { display: none; }

    .bubble-nav {
        left: 50%;
        top: auto;
        bottom: 18px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 14px;
        background: rgba(10, 10, 15, 0.7);
        backdrop-filter: blur(8px);
        padding: 10px 14px;
        border-radius: 999px;
        border: 1px solid rgba(201, 168, 76, 0.18);
    }

    .bubble-label { display: none; }

    .orb { opacity: 0.35 !important; }
    .orb-layer.is-visible .orb { opacity: 0.4 !important; }

    .closing-corner { flex-direction: column; gap: 6px; align-items: center; text-align: center; }
}

@media (max-width: 520px) {
    .chapter-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .cover-title { font-size: clamp(2.4rem, 14vw, 4rem); gap: 0.3em 0.4em; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .cover-title .char { opacity: 1; transform: none; }
    .f-chapter { opacity: 1; transform: none; }
    .grid-guides, .orb-layer.is-visible .orb, .bubble-nav { opacity: 1; }
}
