/* =========================================================================
   SocialDebug.Org — Art-Deco Debugging Hall
   Coastal-blend palette (cold lobby with single candle interior)
   Single-column, tilt-3d, glitch-art portraits, no raster assets
   ========================================================================= */

:root {
    /* Palette (exact hex from DESIGN.md) */
    --atlantic-vault: #0B1418;
    --slate-tide: #143241;
    --sea-glass-brass: #3E7385;
    --foam-patina: #9CC5C0;
    --lobby-brass: #C9A55B;
    --candle-wash: #E8B774;
    --wick-glow: #F4DDA0;
    --oxidised-coral: #7B2E1F;

    /* Typography stacks */
    --font-marquee: 'Bungee Inline', sans-serif;
    --font-headline: 'Big Shoulders Display', sans-serif;
    --font-subhead: 'Oswald', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-gutter: 'Saira Condensed', sans-serif;

    /* Motion */
    --ease-deco: cubic-bezier(0.22, 0.61, 0.36, 1);

    /* Layout */
    --column-max: 720px;
    --gutter-width: 96px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--atlantic-vault);
    overflow-x: hidden;
}

body {
    background: var(--atlantic-vault);
    color: var(--foam-patina);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
    position: relative;
}

/* =========================================================================
   Boot Sequence Overlay
   ========================================================================= */
.boot-overlay {
    position: fixed;
    inset: 0;
    background: var(--atlantic-vault);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: opacity 800ms var(--ease-deco);
}

.boot-overlay.boot-fade {
    opacity: 0;
    pointer-events: none;
}

.boot-chevron {
    width: 240px;
    height: 80px;
    opacity: 0;
}

.boot-chevron polyline {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.boot-overlay.boot-step-1 .boot-chevron {
    opacity: 1;
}

.boot-overlay.boot-step-1 .boot-chevron polyline {
    animation: bootDraw 240ms var(--ease-deco) forwards;
}

.boot-overlay.boot-step-2 .boot-chevron {
    opacity: 1;
    transform: scale(1.4);
    transition: transform 700ms var(--ease-deco);
}

.boot-overlay.boot-step-2 .boot-chevron polyline {
    stroke-dashoffset: 0;
    stroke-width: 1.4;
}

@keyframes bootDraw {
    to { stroke-dashoffset: 0; }
}

/* =========================================================================
   Custom Chevron Cursor
   ========================================================================= */
.deco-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 95;
    mix-blend-mode: screen;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 200ms var(--ease-deco);
    will-change: transform;
}

.deco-cursor svg {
    width: 100%;
    height: 100%;
    animation: chevronTilt 2.5s var(--ease-deco) infinite;
}

@keyframes chevronTilt {
    0%, 100% { transform: rotate(-0.6deg); }
    50% { transform: rotate(0.6deg); }
}

/* =========================================================================
   Candle Halo (follows cursor with easing)
   ========================================================================= */
.candle-halo {
    position: fixed;
    width: 1200px;
    height: 1200px;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(circle, rgba(232, 183, 116, 0.12) 0%, rgba(232, 183, 116, 0.06) 28%, rgba(232, 183, 116, 0) 60%);
    transition: opacity 600ms var(--ease-deco);
    will-change: transform, opacity;
    opacity: 0.85;
}

.candle-halo.attenuating {
    opacity: 0.55;
}

.candle-halo.guttering {
    opacity: 0.18;
}

.candle-halo.intense {
    opacity: 1;
}

/* =========================================================================
   Gutter Ziggurat Bands (parallax)
   ========================================================================= */
.gutter {
    position: fixed;
    top: 0;
    width: var(--gutter-width);
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(20, 50, 65, 0.6) 0%, rgba(20, 50, 65, 0.2) 50%, rgba(20, 50, 65, 0.6) 100%),
        repeating-linear-gradient(
            -8deg,
            rgba(201, 165, 91, 0.04) 0,
            rgba(201, 165, 91, 0.04) 1px,
            transparent 1px,
            transparent 18px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(62, 115, 133, 0.18) 0,
            rgba(62, 115, 133, 0.18) 2px,
            transparent 2px,
            transparent 32px
        );
    border-right: 1px solid rgba(201, 165, 91, 0.18);
}

.gutter-left {
    left: 0;
}

.gutter-right {
    right: 0;
    border-right: none;
    border-left: 1px solid rgba(201, 165, 91, 0.18);
    transform: scaleX(-1);
}

.gutter-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    will-change: transform;
}

.gutter-text {
    writing-mode: vertical-rl;
    font-family: var(--font-gutter);
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.6em;
    color: var(--sea-glass-brass);
    text-transform: uppercase;
    line-height: var(--gutter-width);
    padding: 0 0;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .gutter {
        width: 1px;
        background: linear-gradient(180deg, transparent, var(--lobby-brass) 20%, var(--lobby-brass) 80%, transparent);
        border: none;
    }
    .gutter-inner { display: none; }
}

/* =========================================================================
   Plinth (the tilting page wrapper)
   ========================================================================= */
.plinth {
    position: relative;
    z-index: 5;
    perspective: 1600px;
    perspective-origin: 50% 30%;
    padding: 0 var(--gutter-width);
}

.column {
    max-width: var(--column-max);
    margin: 0 auto;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 80ms linear;
}

/* =========================================================================
   Tier Base — Seven full-viewport-height tiers
   ========================================================================= */
.tier {
    min-height: 100vh;
    padding: 6rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1000ms var(--ease-deco), transform 1000ms var(--ease-deco);
}

.tier.tier-visible {
    opacity: 1;
    transform: translateY(0);
}

.threshold-top,
.threshold-bottom {
    width: 100%;
    height: 24px;
    overflow: visible;
    margin: 0;
}

.threshold-top svg,
.threshold-bottom svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(201, 165, 91, 0.4));
}

.tier-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tier-number {
    font-family: var(--font-marquee);
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--lobby-brass);
    text-shadow: 0 0 12px rgba(201, 165, 91, 0.4);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.tier-title {
    font-family: var(--font-marquee);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    color: var(--candle-wash);
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 18px rgba(232, 183, 116, 0.35),
        0 2px 0 rgba(11, 20, 24, 0.6);
    background: linear-gradient(180deg, var(--wick-glow) 0%, var(--candle-wash) 45%, var(--lobby-brass) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================================
   TIER 1 — Marquee
   ========================================================================= */
.tier-1 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.marquee-frame {
    position: relative;
    text-align: center;
    padding: 5rem 2rem;
    border: 1px solid rgba(201, 165, 91, 0.4);
    background:
        radial-gradient(ellipse at 50% 40%, rgba(232, 183, 116, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(20, 50, 65, 0.2) 0%, rgba(11, 20, 24, 0.4) 100%);
    box-shadow:
        inset 0 0 0 8px rgba(20, 50, 65, 0.3),
        inset 0 0 0 9px rgba(201, 165, 91, 0.3),
        0 0 60px rgba(11, 20, 24, 0.8);
    overflow: visible;
}

.marquee-blueprint {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.wordmark {
    position: relative;
    font-family: var(--font-marquee);
    font-size: clamp(2.2rem, 9vw, 6rem);
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--lobby-brass);
    z-index: 2;
    margin-bottom: 1.6rem;
    word-break: break-word;
}

.wm-letter {
    display: inline-block;
    background: linear-gradient(180deg, var(--wick-glow) 0%, var(--candle-wash) 40%, var(--lobby-brass) 80%, var(--oxidised-coral) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgba(232, 183, 116, 0.5);
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
    transition: opacity 220ms var(--ease-deco), transform 220ms var(--ease-deco), filter 220ms var(--ease-deco);
}

.wm-letter.wm-show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.marquee-deck {
    position: relative;
    z-index: 2;
    font-family: var(--font-subhead);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--sea-glass-brass);
    margin-top: 1.8rem;
}

.candle-wrap {
    position: absolute;
    right: -36px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 200px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(232, 183, 116, 0.5));
}

.candle-svg {
    width: 100%;
    height: 100%;
}

.flame {
    transform-origin: 30px 68px;
    animation: flameFlicker 2.6s steps(14, end) infinite;
}

.flame.attenuated {
    opacity: 0.5;
}

.flame.gutter {
    opacity: 0.1;
}

@keyframes flameFlicker {
    0%   { transform: scale(1, 1)       rotate(-1.2deg); opacity: 0.95; }
    7%   { transform: scale(0.94, 1.04) rotate(0.4deg);  opacity: 1; }
    14%  { transform: scale(1.04, 0.96) rotate(-0.6deg); opacity: 0.9; }
    21%  { transform: scale(0.96, 1.06) rotate(1deg);    opacity: 1; }
    28%  { transform: scale(1.02, 0.98) rotate(-0.4deg); opacity: 0.94; }
    35%  { transform: scale(0.98, 1.02) rotate(0.6deg);  opacity: 1; }
    43%  { transform: scale(1.06, 0.94) rotate(-1deg);   opacity: 0.88; }
    50%  { transform: scale(0.94, 1.08) rotate(0.4deg);  opacity: 1; }
    57%  { transform: scale(1, 1)       rotate(-0.6deg); opacity: 0.96; }
    64%  { transform: scale(1.04, 0.96) rotate(0.8deg);  opacity: 1; }
    71%  { transform: scale(0.96, 1.04) rotate(-0.4deg); opacity: 0.92; }
    78%  { transform: scale(1.02, 0.98) rotate(0.6deg);  opacity: 1; }
    85%  { transform: scale(0.98, 1.02) rotate(-0.8deg); opacity: 0.94; }
    92%  { transform: scale(1.06, 0.94) rotate(0.4deg);  opacity: 1; }
    100% { transform: scale(1, 1)       rotate(-1.2deg); opacity: 0.95; }
}

/* =========================================================================
   TIER 2 — Stack Trace
   ========================================================================= */
.oscilloscope-wrap {
    position: relative;
    margin: 0 auto 2.4rem;
    border: 1px solid rgba(62, 115, 133, 0.5);
    background: rgba(11, 20, 24, 0.7);
    padding: 0.4rem;
}

.oscilloscope {
    width: 100%;
    height: auto;
    display: block;
}

.osc-trace {
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    filter: drop-shadow(0 0 6px rgba(156, 197, 192, 0.6));
}

.tier-2.tier-visible .osc-trace {
    animation: oscDraw 3400ms var(--ease-deco) forwards;
}

@keyframes oscDraw {
    to { stroke-dashoffset: 0; }
}

.exception-line {
    opacity: 0;
}

.tier-2.tier-visible .exception-line {
    opacity: 1;
    animation: exceptionPulse 1.67s ease-in-out 3.4s infinite;
}

@keyframes exceptionPulse {
    0%, 100% { opacity: 0.4; stroke-width: 1; }
    50% { opacity: 1; stroke-width: 1.6; }
}

.osc-vertices circle {
    opacity: 0;
}

.tier-2.tier-visible .osc-vertices circle {
    animation: vertexPop 80ms var(--ease-deco) forwards;
}

.tier-2.tier-visible .osc-vertices circle:nth-child(1) { animation-delay: 600ms; }
.tier-2.tier-visible .osc-vertices circle:nth-child(2) { animation-delay: 1500ms; }
.tier-2.tier-visible .osc-vertices circle:nth-child(3) { animation-delay: 2400ms; }
.tier-2.tier-visible .osc-vertices circle:nth-child(4) { animation-delay: 3200ms; }

@keyframes vertexPop {
    to { opacity: 1; }
}

.frame-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.frame-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--lobby-brass);
    background: rgba(11, 20, 24, 0.85);
    padding: 2px 6px;
    border: 1px solid rgba(201, 165, 91, 0.4);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 300ms var(--ease-deco), transform 300ms var(--ease-deco);
}

.tier-2.tier-visible .frame-label:nth-child(1) { transition-delay: 680ms; opacity: 1; transform: translateY(0); }
.tier-2.tier-visible .frame-label:nth-child(2) { transition-delay: 1580ms; opacity: 1; transform: translateY(0); }
.tier-2.tier-visible .frame-label:nth-child(3) { transition-delay: 2480ms; opacity: 1; transform: translateY(0); }
.tier-2.tier-visible .frame-label:nth-child(4) { transition-delay: 3280ms; opacity: 1; transform: translateY(0); }

.tier-narration {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--foam-patina);
    text-align: center;
    margin: 0 auto;
    max-width: 580px;
    line-height: 1.7;
}

/* =========================================================================
   TIER 3 — Symptoms (medallions)
   ========================================================================= */
.medallion {
    text-align: center;
    margin: 0 auto 4rem;
    max-width: 520px;
    transform-style: preserve-3d;
    transition: transform 600ms var(--ease-deco);
}

.medallion:hover {
    transform: rotateX(-6deg);
}

.medallion-frame {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 1.4rem;
}

.medallion-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: drop-shadow(0 0 12px rgba(201, 165, 91, 0.3));
}

.portrait-clip {
    position: absolute;
    inset: 22px;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    background: var(--atlantic-vault);
}

.portrait {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.ch-r { animation: ch-r-glitch 7s steps(20) infinite; }
.ch-g { animation: ch-g-glitch 7s steps(20) infinite; }
.ch-b { animation: ch-b-glitch 7s steps(20) infinite; }

@keyframes ch-r-glitch {
    0%, 100% { transform: translateX(-2px); }
    10% { transform: translateX(3px); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(1px); }
}
@keyframes ch-g-glitch {
    0%, 100% { transform: translateX(1px); }
    15% { transform: translateX(-2px); }
    30% { transform: translateX(4px); }
    55% { transform: translateX(-1px); }
    80% { transform: translateX(3px); }
}
@keyframes ch-b-glitch {
    0%, 100% { transform: translateX(2px); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(1px); }
    60% { transform: translateX(-2px); }
    85% { transform: translateX(4px); }
}

.glitch-bands {
    mix-blend-mode: screen;
}

.gb {
    animation: gbTear 7s steps(14, end) infinite;
}

.gb-a { animation-delay: 0s; }
.gb-b { animation-delay: -1.4s; }
.gb-c { animation-delay: -2.8s; }
.gb-d { animation-delay: -4.2s; }

@keyframes gbTear {
    0%, 100% { transform: translateX(-6px); }
    14% { transform: translateX(12px); }
    28% { transform: translateX(-14px); }
    42% { transform: translateX(8px); }
    56% { transform: translateX(-18px); }
    70% { transform: translateX(14px); }
    84% { transform: translateX(-10px); }
}

.medallion:hover .gb {
    animation-duration: 0.8s;
}

.medallion-label {
    font-family: var(--font-subhead);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    color: var(--lobby-brass);
    margin-bottom: 0.4rem;
}

.medallion-name {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 2rem;
    color: var(--candle-wash);
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.medallion-log {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--foam-patina);
    opacity: 0.85;
    line-height: 1.55;
    max-width: 380px;
    margin: 0 auto;
}

/* =========================================================================
   TIER 4 — Breakpoints (marble plinths)
   ========================================================================= */
.plinth-list {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.marble-plinth {
    position: relative;
    padding: 1.6rem 2rem 1.8rem;
    background:
        linear-gradient(180deg, rgba(244, 221, 160, 0.04) 0%, rgba(20, 50, 65, 0.4) 100%),
        repeating-linear-gradient(
            38deg,
            rgba(201, 165, 91, 0.04) 0,
            rgba(201, 165, 91, 0.04) 1px,
            transparent 1px,
            transparent 12px
        );
    border-top: 1px solid rgba(201, 165, 91, 0.5);
    border-bottom: 1px solid rgba(201, 165, 91, 0.5);
    border-left: 1px solid rgba(201, 165, 91, 0.18);
    border-right: 1px solid rgba(201, 165, 91, 0.18);
    box-shadow:
        inset 0 0 0 4px rgba(20, 50, 65, 0.4),
        inset 0 0 0 5px rgba(201, 165, 91, 0.18);
    text-align: center;
    transition: transform 400ms var(--ease-deco);
}

.marble-plinth.plinth-active {
    transform: translateY(-3px);
}

.plinth-numeral {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    color: var(--candle-wash);
    line-height: 1;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    transition: font-weight 280ms var(--ease-deco);
    background: linear-gradient(180deg, var(--wick-glow) 0%, var(--candle-wash) 50%, var(--lobby-brass) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(232, 183, 116, 0.35);
}

.marble-plinth.plinth-active .plinth-numeral {
    font-weight: 900;
}

.plinth-body {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--foam-patina);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* =========================================================================
   TIER 5 — Field Reports
   ========================================================================= */
.field-report {
    margin: 0 auto 1.6rem;
    max-width: 620px;
}

.report-paragraph {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08rem;
    color: var(--foam-patina);
    line-height: 1.75;
    text-align: left;
}

.report-paragraph strong {
    font-style: normal;
    font-weight: 600;
    color: var(--candle-wash);
}

.report-rule {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 1.4rem auto;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-rule svg {
    width: 100%;
    height: 100%;
    opacity: 0.7;
    filter: drop-shadow(0 0 4px rgba(156, 197, 192, 0.3));
}

.rule-chevron {
    position: absolute;
    color: var(--lobby-brass);
    font-size: 14px;
    background: var(--atlantic-vault);
    padding: 0 8px;
    font-family: var(--font-marquee);
}

/* =========================================================================
   Glitch-Tear Band (between tier 5 and tier 6)
   ========================================================================= */
.glitch-band {
    position: relative;
    width: 100%;
    height: 9px;
    margin: 4rem auto;
    overflow: hidden;
    background: var(--atlantic-vault);
}

.glitch-slice {
    position: absolute;
    height: 100%;
    animation: glitchSliceShift 4.2s steps(8, end) infinite;
}

.gs-1 { left: 0%;  width: 22%; background: linear-gradient(90deg, var(--oxidised-coral), var(--candle-wash)); animation-delay: 0s; }
.gs-2 { left: 18%; width: 18%; background: linear-gradient(90deg, var(--sea-glass-brass), var(--foam-patina)); animation-delay: -0.6s; }
.gs-3 { left: 40%; width: 14%; background: linear-gradient(90deg, var(--lobby-brass), var(--oxidised-coral)); animation-delay: -1.2s; }
.gs-4 { left: 58%; width: 24%; background: linear-gradient(90deg, var(--foam-patina), var(--sea-glass-brass)); animation-delay: -1.8s; }
.gs-5 { left: 80%; width: 20%; background: linear-gradient(90deg, var(--candle-wash), var(--lobby-brass)); animation-delay: -2.4s; }

@keyframes glitchSliceShift {
    0%, 100% { transform: translateX(0); opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    12% { transform: translateX(-16px); opacity: 0.6; clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
    25% { transform: translateX(20px); opacity: 1; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
    37% { transform: translateX(-8px); opacity: 0.4; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    50% { transform: translateX(14px); opacity: 1; clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%); }
    62% { transform: translateX(-22px); opacity: 0.7; clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%); }
    75% { transform: translateX(8px); opacity: 1; clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%); }
    87% { transform: translateX(-14px); opacity: 0.5; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* =========================================================================
   TIER 6 — Witness Wall
   ========================================================================= */
.inscription-wall {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin: 0 auto;
    max-width: 620px;
}

.inscription {
    font-family: var(--font-subhead);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: clamp(0.86rem, 2.1vw, 1.05rem);
    color: var(--candle-wash);
    line-height: 1.5;
    transform: translateX(var(--shift, 0));
    text-shadow:
        0 0 12px rgba(232, 183, 116, 0.3),
        0 1px 0 rgba(11, 20, 24, 0.8);
    border-left: 1px solid rgba(201, 165, 91, 0.3);
    border-right: 1px solid rgba(201, 165, 91, 0.3);
    padding: 0.4rem 0.8rem;
    background: linear-gradient(90deg, transparent 0%, rgba(20, 50, 65, 0.18) 50%, transparent 100%);
}

/* =========================================================================
   TIER 7 — Sign-Off
   ========================================================================= */
.tier-7 {
    text-align: center;
    align-items: center;
}

.sign-off-seal {
    width: 240px;
    height: 240px;
    margin: 2rem auto 2.4rem;
    opacity: 0;
    transform: scale(0.4) rotate(-20deg);
    filter: drop-shadow(0 0 30px rgba(123, 46, 31, 0.6));
}

.sign-off-seal.seal-stamped {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: opacity 140ms linear, transform 140ms linear;
}

.sign-off-seal svg {
    width: 100%;
    height: 100%;
}

.exit-line {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--foam-patina);
    letter-spacing: 0.08em;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 600ms var(--ease-deco) 300ms;
}

.tier-7.tier-visible .exit-line {
    opacity: 1;
}

/* =========================================================================
   Page Darken (during tier-7 candle-gutter blackout)
   ========================================================================= */
body.guttering::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 24, 0.4);
    pointer-events: none;
    z-index: 50;
    transition: background 200ms var(--ease-deco);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
    :root {
        --gutter-width: 14px;
    }
    .marquee-frame {
        padding: 3rem 1rem;
    }
    .candle-wrap {
        right: -10px;
        width: 40px;
        height: 134px;
    }
    .tier {
        padding: 4rem 0.6rem;
    }
}

@media (max-width: 560px) {
    .candle-wrap {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 1rem auto 0;
        width: 40px;
        height: 134px;
    }
    .marquee-frame {
        padding: 2.6rem 0.8rem;
    }
    .wordmark {
        font-size: clamp(1.6rem, 12vw, 3rem);
    }
}

/* =========================================================================
   Reduced Motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    .flame {
        animation: none;
    }
    .gb, .ch-r, .ch-g, .ch-b {
        animation: none !important;
    }
    .glitch-slice {
        animation: none;
    }
    .osc-trace {
        stroke-dashoffset: 0;
    }
    .deco-cursor svg {
        animation: none;
    }
    .tier {
        opacity: 1;
        transform: none;
    }
    .column {
        transform: none !important;
    }
}
