/* =============================================================
   desca.dev — descent into candlelight
   street-style meets candlelit séance
   Compliance lexicon: (400 Mono" (Google Interaction Philosophy:** Philosophy* Interactive elements (links IntersectionObserver` stagger (avoid overused pattern with `threshold: 0.15`. Elements `opacity`
   ============================================================= */

:root {
    /* Palette — every color sits between ember and ash */
    --soot:            #0D0A08;
    --ash:             #1A1512;
    --parchment:       #E8DED3;
    --smoke:           #8A7E72;
    --burnt-sienna:    #C45A27;
    --candle-glow:     #D4713D;
    --wax-drip:        #E8A862;
    --charcoal-mark:   #2C2420;
    --diluted-flame:   rgba(212, 113, 61, 0.2);
    --smoke-screen:    rgba(138, 126, 114, 0.13);

    /* Typography */
    --font-display: 'Space Mono', ui-monospace, Menlo, monospace;
    --font-body:    'IBM Plex Mono', ui-monospace, Consolas, monospace;
    --font-hand:    'Caveat', cursive;

    /* Layout */
    --gap-a: 16px;
    --gap-b: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--soot);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(196, 90, 39, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 82% 38%, rgba(212, 113, 61, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 48% 72%, rgba(232, 168, 98, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(196, 90, 39, 0.05) 0%, transparent 45%);
    color: var(--parchment);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle paper-grain noise across the body */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
    opacity: 0.25;
    mix-blend-mode: overlay;
}

/* =============================================================
   Background stains (warm distant candlelight spots)
   ============================================================= */
.bg-stains {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.stain {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}
.stain-1 { top: -10%; left: -10%; width: 46vw; height: 46vw;
    background: radial-gradient(circle, rgba(196, 90, 39, 0.22), transparent 70%); }
.stain-2 { top: 30%; right: -15%; width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(212, 113, 61, 0.14), transparent 70%); }
.stain-3 { bottom: -15%; left: 10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(232, 168, 98, 0.10), transparent 70%); }
.stain-4 { top: 65%; right: 25%; width: 36vw; height: 36vw;
    background: radial-gradient(circle, rgba(196, 90, 39, 0.12), transparent 70%); }

/* =============================================================
   Smoke wisps
   ============================================================= */
.smoke-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.wisp {
    position: absolute;
    bottom: -20%;
    width: 40px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(138, 126, 114, 0.14), transparent 70%);
    filter: blur(22px);
    opacity: 0.7;
    animation: drift 18s linear infinite;
}
.wisp-1 { left: 18%; animation-duration: 17s; animation-delay: 0s; }
.wisp-2 { left: 52%; animation-duration: 21s; animation-delay: -7s; }
.wisp-3 { left: 78%; animation-duration: 19s; animation-delay: -12s; }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(0.8); opacity: 0; }
    15%  { opacity: 0.55; }
    50%  { transform: translate(-20px, -60vh) scale(1.1); opacity: 0.35; }
    85%  { opacity: 0.2; }
    100% { transform: translate(30px, -120vh) scale(1.4); opacity: 0; }
}

/* =============================================================
   Flame SVG (nav glyph, hero, small decorative)
   ============================================================= */
.flame-svg {
    display: block;
    overflow: visible;
}
.flame-group {
    transform-origin: 30px 80px;
    animation: flame-sway 2.2s ease-in-out infinite;
}
.flame-outer {
    fill: rgba(212, 113, 61, 0.25);
    animation: flame-breath 3.1s ease-in-out infinite;
    transform-origin: 30px 78px;
}
.flame-middle {
    fill: #C45A27;
    animation: flame-sway-inner 2s ease-in-out infinite;
    transform-origin: 30px 78px;
}
.flame-core {
    fill: #E8A862;
    animation: flame-jitter 0.13s steps(2, end) infinite;
    transform-origin: 30px 70px;
}
.wick {
    fill: var(--charcoal-mark);
}

@keyframes flame-sway {
    0%, 100% { transform: rotate(-1.5deg) translateX(-0.5px); }
    33%      { transform: rotate(1.2deg) translateX(0.8px); }
    66%      { transform: rotate(-0.8deg) translateX(-0.3px); }
}
@keyframes flame-sway-inner {
    0%, 100% { transform: rotate(1deg) scaleY(1.02); }
    50%      { transform: rotate(-1.4deg) scaleY(0.98); }
}
@keyframes flame-jitter {
    0%   { transform: translateX(-0.4px) scaleY(1);    opacity: 0.95; }
    50%  { transform: translateX(0.5px)  scaleY(1.05); opacity: 1; }
    100% { transform: translateX(-0.3px) scaleY(0.97); opacity: 0.9; }
}
@keyframes flame-breath {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.06); }
}

/* =============================================================
   Navigation glyph (fixed top-left)
   ============================================================= */
.nav-glyph {
    position: fixed;
    top: 22px;
    left: 22px;
    width: 44px;
    height: 60px;
    background: transparent;
    border: 1px solid transparent;
    padding: 4px;
    z-index: 60;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}
.nav-glyph .flame-glyph { width: 36px; height: 54px; }
.nav-glyph:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 14px rgba(212, 113, 61, 0.6));
}

/* =============================================================
   Overlay navigation
   ============================================================= */
.overlay-nav {
    position: fixed;
    inset: 0;
    background: rgba(13, 10, 8, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms ease-out, visibility 0s linear 600ms;
}
.overlay-nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 600ms ease-out, visibility 0s linear 0s;
}
.overlay-close {
    position: absolute;
    top: 26px;
    right: 30px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    color: var(--smoke);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    transition: color 0.3s ease, transform 0.3s ease;
}
.overlay-close:hover { color: var(--candle-glow); transform: rotate(90deg); }

.overlay-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.overlay-links li {
    opacity: 0;
    transform: translateY(6px);
}
.overlay-nav.is-open .overlay-links li {
    animation: nav-reveal 500ms ease-out forwards;
}
.overlay-nav.is-open .overlay-links li:nth-child(1) { animation-delay: 160ms; }
.overlay-nav.is-open .overlay-links li:nth-child(2) { animation-delay: 260ms; }
.overlay-nav.is-open .overlay-links li:nth-child(3) { animation-delay: 360ms; }
.overlay-nav.is-open .overlay-links li:nth-child(4) { animation-delay: 460ms; }

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

.overlay-links a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--burnt-sienna);
    letter-spacing: 0.14em;
    text-decoration: none;
    position: relative;
    padding: 6px 14px;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}
.overlay-links a:hover {
    color: var(--candle-glow);
    text-shadow: 0 0 18px rgba(212, 113, 61, 0.55);
    transform: scale(1.03);
}
.overlay-dedication {
    font-family: var(--font-hand);
    color: var(--candle-glow);
    opacity: 0.6;
    font-size: 1.1rem;
    transform: rotate(-2deg);
    margin-top: 18px;
}

/* =============================================================
   Rosary scroll progress
   ============================================================= */
.rosary {
    position: fixed;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}
.bead {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--smoke);
    background: transparent;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.bead.is-lit {
    background: var(--candle-glow);
    border-color: var(--candle-glow);
    box-shadow: 0 0 8px 1px rgba(212, 113, 61, 0.55);
}
.bead.is-active {
    transform: scale(1.4);
    background: var(--wax-drip);
    border-color: var(--wax-drip);
    box-shadow: 0 0 14px 2px rgba(232, 168, 98, 0.6);
}

/* =============================================================
   Section: The Threshold
   ============================================================= */
.threshold {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    z-index: 3;
}
.threshold-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.hero-flame {
    position: relative;
    width: 120px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flame-halo {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(212, 113, 61, 0.28) 0%,
        rgba(212, 113, 61, 0.12) 30%,
        transparent 62%);
    filter: blur(8px);
    animation: halo-breath 3.4s ease-in-out infinite;
    pointer-events: none;
}
.flame-halo.small { width: 220px; height: 220px; }
@keyframes halo-breath {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}
.flame-hero { width: 96px; height: 144px; position: relative; z-index: 1; }

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--burnt-sienna);
    letter-spacing: 0.12em;
    text-transform: lowercase;
    margin: 0;
    text-shadow: 0 0 22px rgba(196, 90, 39, 0.3);
}
.hero-tag {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--smoke);
    letter-spacing: 0.08em;
    margin: 0;
    min-height: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-tag .typed { white-space: pre; }
.hero-tag .cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--candle-glow);
    margin-left: 4px;
    animation: blink 900ms steps(2, end) infinite;
}
@keyframes blink {
    0%, 49%  { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.scroll-chevron {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    color: var(--candle-glow);
    opacity: 0.4;
    animation: chevron-bob 2s ease-in-out infinite;
}
.scroll-chevron svg { width: 100%; height: 100%; }
@keyframes chevron-bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
}

/* =============================================================
   Section dividers — watercolor band
   ============================================================= */
.divider-watercolor {
    position: relative;
    height: 140px;
    margin: 0 -40px;
    pointer-events: none;
    z-index: 3;
    filter: blur(28px);
    opacity: 0.75;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(196, 90, 39, 0.35), transparent 70%),
        radial-gradient(ellipse 50% 60% at 55% 40%, rgba(138, 126, 114, 0.22), transparent 70%),
        radial-gradient(ellipse 70% 90% at 85% 60%, rgba(212, 113, 61, 0.3), transparent 70%);
}
.divider-alt {
    background:
        radial-gradient(ellipse 70% 80% at 15% 50%, rgba(138, 126, 114, 0.2), transparent 70%),
        radial-gradient(ellipse 55% 65% at 50% 45%, rgba(212, 113, 61, 0.28), transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 55%, rgba(196, 90, 39, 0.32), transparent 70%);
}

/* =============================================================
   The Wall (masonry grid)
   ============================================================= */
.wall {
    position: relative;
    z-index: 3;
    padding: 40px clamp(20px, 4vw, 72px) 120px;
    max-width: 1440px;
    margin: 0 auto;
}
.wall-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 60px;
    padding-left: clamp(0px, 5vw, 80px);
}
.wall-kicker {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--smoke);
    margin: 0;
}
.wall-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3.6rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--burnt-sienna);
    margin: 0;
    line-height: 1.1;
}

.masonry {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--gap-b);
    align-items: start;
}

/* --- Shrine column (leftmost atmospheric column) --- */
.shrine-column {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(0);
    will-change: transform;
}
.shrine-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}
.shrine-item[data-ratio="tall"]   { aspect-ratio: 2 / 3; }
.shrine-item[data-ratio="square"] { aspect-ratio: 1 / 1; }
.shrine-item[data-ratio="wide"]   { aspect-ratio: 3 / 2; }

.shrine-word {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    letter-spacing: 0.5em;
    color: var(--smoke);
    text-transform: uppercase;
    opacity: 0.8;
}
.shrine-flame {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(212, 113, 61, 0.08), transparent 70%);
}
.flame-small { width: 30px; height: 44px; opacity: 0.7; }

.shrine-wash { position: relative; }
.shrine-wash::before {
    content: "";
    position: absolute;
    inset: -10%;
    filter: blur(28px);
}
.wash-a::before {
    background:
        radial-gradient(circle at 30% 40%, rgba(196, 90, 39, 0.28), transparent 65%),
        radial-gradient(circle at 70% 70%, rgba(232, 168, 98, 0.18), transparent 65%);
}
.wash-b::before {
    background:
        radial-gradient(circle at 50% 50%, rgba(138, 126, 114, 0.25), transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(212, 113, 61, 0.2), transparent 70%);
}

/* --- Masonry grid using CSS columns --- */
.masonry-grid {
    column-count: 2;
    column-gap: var(--gap-b);
}

.block {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 var(--gap-a) 0;
    padding: 26px 24px;
    background: var(--ash);
    border: 2px solid transparent;
    border-radius: 2px;
    break-inside: avoid;
    overflow: hidden;
    transform: scale(0.98);
    opacity: 0;
    transition:
        opacity 400ms ease,
        transform 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 400ms ease,
        box-shadow 400ms ease;
}
.block.is-visible {
    opacity: 0.85;
}
.block:hover {
    opacity: 1;
    transform: scale(1);
    border-color: var(--charcoal-mark);
    box-shadow: 0 0 40px rgba(212, 113, 61, 0.18);
}
/* Alternating gap rhythm (uneven 16/28px vertical as blocks stack) */
.block:nth-child(odd)  { margin-bottom: var(--gap-b); }
.block:nth-child(even) { margin-bottom: var(--gap-a); }

.block[data-ratio="tall"]   { min-height: 360px; }
.block[data-ratio="square"] { min-height: 260px; }
.block[data-ratio="wide"]   { min-height: 200px; }

/* Block corner watercolor bleed */
.block::before {
    content: "";
    position: absolute;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle at center, rgba(212, 113, 61, 0.22), transparent 70%);
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
}
.block:nth-child(4n)   ::before, .block:nth-child(4n)::before   { top: -12%;    left: -12%; }
.block:nth-child(4n+1) ::before, .block:nth-child(4n+1)::before { top: -12%;    right: -12%; left: auto; }
.block:nth-child(4n+2) ::before, .block:nth-child(4n+2)::before { bottom: -12%; left: -12%; top: auto; }
.block:nth-child(4n+3) ::before, .block:nth-child(4n+3)::before { bottom: -12%; right: -12%; top: auto; left: auto; }

.block > * { position: relative; z-index: 1; }

/* Paper grain inside blocks */
.block-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.16 0 0 0 0 0.13 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n2)' opacity='0.3'/></svg>");
    opacity: 0.45;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}
.rule-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(44, 36, 32, 0.35) 0px,
        rgba(44, 36, 32, 0.35) 1px,
        transparent 1px,
        transparent 10px
    );
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Wax-drip top border */
.wax-drip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    pointer-events: none;
    z-index: 2;
}
.wax-drip svg { width: 100%; height: 100%; display: block; }

/* Caveat annotation */
.caveat-note {
    font-family: var(--font-hand);
    color: var(--candle-glow);
    opacity: 0.65;
    font-size: 1.1rem;
    transform: rotate(-2deg);
    display: inline-block;
    margin-bottom: 8px;
}
.caveat-note.right {
    float: right;
    margin-left: 12px;
    transform: rotate(2deg);
}

/* Project block typography */
.block-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    color: var(--burnt-sienna);
    margin: 4px 0 14px;
    line-height: 1.15;
}
.block-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--parchment);
    line-height: 1.7;
    margin: 0 0 14px;
}
.block-meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--smoke);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    margin: 14px 0 0;
}
.block-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.block-list li {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--wax-drip);
    letter-spacing: 0.08em;
    text-transform: lowercase;
    padding-left: 12px;
    position: relative;
}
.block-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--candle-glow);
}

/* Quote block */
.quote-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    padding: 38px 30px;
    box-shadow: 0 0 32px rgba(212, 113, 61, 0.08);
    background: transparent;
}
.quote-body {
    font-family: var(--font-hand);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    color: var(--candle-glow);
    line-height: 1.25;
    transform: rotate(-1.5deg);
    margin: 0;
    text-align: center;
}
.quote-long { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

/* Text fragment block */
.text-block {
    background: rgba(26, 21, 18, 0.8);
}
.fragment-kicker {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: var(--smoke);
    text-transform: lowercase;
    margin: 0 0 14px;
}
.fragment-body {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--parchment);
    line-height: 1.75;
    margin: 0 0 12px;
}

/* Image (gradient-only) blocks */
.image-block { padding: 0; background: var(--ash); min-height: 260px; }
.image-block .gradient-piece {
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
}
.image-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n3'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.16 0 0 0 0 0.13 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n3)' opacity='0.3'/></svg>");
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.piece-alpha {
    background:
        radial-gradient(circle at 30% 30%, #C45A27 0%, transparent 55%),
        radial-gradient(circle at 70% 55%, #D4713D 0%, transparent 60%),
        conic-gradient(from 120deg at 50% 50%, #1A1512, #2C2420, #E8A862, #1A1512);
    filter: blur(2px) saturate(1.1);
}
.piece-beta {
    background:
        radial-gradient(circle at 20% 70%, #E8A862 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, #C45A27 0%, transparent 60%),
        conic-gradient(from 30deg at 60% 40%, #2C2420, #C45A27, #1A1512, #8A7E72);
    filter: blur(3px) saturate(1.2);
}
.piece-gamma {
    background:
        radial-gradient(circle at 50% 40%, #D4713D 0%, transparent 55%),
        radial-gradient(circle at 20% 20%, #E8A862 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, #2C2420 0%, transparent 60%),
        linear-gradient(135deg, #1A1512, #2C2420);
    filter: blur(2px);
}
.piece-delta {
    background:
        radial-gradient(ellipse at 30% 50%, #C45A27 0%, transparent 55%),
        radial-gradient(ellipse at 75% 50%, #8A7E72 0%, transparent 55%),
        linear-gradient(90deg, #1A1512, #2C2420 50%, #1A1512);
    filter: blur(4px) saturate(1.1);
}

/* Wash (full watercolor) block */
.wash-block { background: transparent; min-height: 200px; padding: 0; border: none; }
.wash-bleed {
    position: absolute;
    inset: -8%;
    filter: blur(28px);
    mix-blend-mode: screen;
}
.wash-big {
    background:
        radial-gradient(ellipse 70% 60% at 30% 40%, rgba(196, 90, 39, 0.4), transparent 70%),
        radial-gradient(ellipse 60% 55% at 75% 65%, rgba(212, 113, 61, 0.3), transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(232, 168, 98, 0.2), transparent 70%);
}
.wash-small {
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 113, 61, 0.35), transparent 65%),
        radial-gradient(circle at 20% 80%, rgba(138, 126, 114, 0.22), transparent 65%);
}
.wash-block::before { display: none; }

/* =============================================================
   The Altar (footer)
   ============================================================= */
.altar {
    position: relative;
    z-index: 3;
    background: var(--soot);
    padding: 120px 24px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    border-top: 1px solid var(--charcoal-mark);
}
.altar-flame {
    position: relative;
    width: 80px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.flame-altar { width: 54px; height: 82px; position: relative; z-index: 1; }

.altar-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--burnt-sienna);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 0 0 20px;
    text-shadow:
        -1px -1px 0 rgba(13, 10, 8, 0.8),
        1px 1px 1px rgba(232, 168, 98, 0.15);
}
.altar-line {
    font-family: var(--font-body);
    color: var(--smoke);
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    text-transform: uppercase;
    margin: 6px 0 0;
}
.altar-email {
    margin: 4px 0 24px;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    letter-spacing: 0.12em;
}
.email-link {
    color: var(--parchment);
    text-decoration: none;
    padding: 6px 10px;
    transition: color 0.3s ease, text-shadow 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 2px;
}
.email-link:hover {
    color: var(--candle-glow);
    text-shadow: 0 0 14px rgba(212, 113, 61, 0.6);
    box-shadow: 0 0 20px 5px rgba(212, 113, 61, 0.27);
    transform: scale(1.02);
}

.altar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: center;
    margin: 0 0 36px;
}
.altar-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    color: var(--smoke);
    padding: 4px 6px;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}
.altar-link:hover {
    color: var(--candle-glow);
    text-shadow: 0 0 12px rgba(212, 113, 61, 0.55);
    transform: scale(1.05);
}
.altar-sep { color: var(--charcoal-mark); font-family: var(--font-display); }

.altar-closing {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--candle-glow);
    opacity: 0.4;
    transform: rotate(-1.5deg);
    margin: 20px 0 6px;
}
.altar-colophon {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--smoke);
    letter-spacing: 0.4em;
    opacity: 0.45;
    margin: 4px 0 0;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1023px) {
    .masonry { grid-template-columns: 120px 1fr; gap: var(--gap-a); }
    .masonry-grid { column-count: 2; column-gap: var(--gap-a); }
    .vertical-text { font-size: 0.9rem; letter-spacing: 0.4em; }
    .nav-glyph { top: 16px; left: 16px; }
}
@media (max-width: 767px) {
    .masonry { grid-template-columns: 1fr; }
    .shrine-column {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 14px;
        margin-bottom: 30px;
    }
    .shrine-item { flex: 0 0 80px; }
    .shrine-item[data-ratio="tall"],
    .shrine-item[data-ratio="square"],
    .shrine-item[data-ratio="wide"] { aspect-ratio: 1 / 1; }
    .shrine-word { aspect-ratio: 1 / 2; }
    .masonry-grid { column-count: 1; }
    .rosary { display: none; }
    .wall-intro { padding-left: 0; }
    .divider-watercolor { height: 100px; }
}
