/* ============================================================
   lugubrious.dev — a quiet record of receding tides
   coastal-blend / mournful y2k research portal
   ============================================================ */

:root {
    --c-abyss:        #0A1218;
    --c-tidal:        #15252E;
    --c-drowned:      #27424D;
    --c-overcast:     #5C7880;
    --c-seaglass:     #8AA3A6;
    --c-foam:         #C8D7CB;
    --c-amber:        #E8B068;
    --c-hairline:     #3A555E;

    --rail-w: 56px;
    --nav-pad: 38px;

    --f-body:    'JetBrains Mono', ui-monospace, 'Menlo', monospace;
    --f-readout: 'Space Mono', 'JetBrains Mono', monospace;
    --f-display: 'IBM Plex Mono', 'JetBrains Mono', monospace;
    --f-glyph:   'Major Mono Display', 'IBM Plex Mono', monospace;
}

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

html, body {
    background-color: var(--c-abyss);
    color: var(--c-overcast);
    font-family: var(--f-body);
    font-size: 13.5px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(1200px 800px at 18% 8%,  rgba(40, 70, 86, 0.22)  0%, transparent 60%),
        radial-gradient(1400px 1100px at 82% 32%, rgba(20, 36, 46, 0.45) 0%, transparent 70%),
        radial-gradient(1600px 1200px at 50% 90%, rgba(10, 18, 24, 1)    0%, var(--c-abyss) 80%),
        var(--c-abyss);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   procedural frost / static overlay
   ============================================================ */

.frost-overlay {
    position: fixed;
    inset: -8% -8%;
    pointer-events: none;
    z-index: 90;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78  0 0 0 0 0.85  0 0 0 0 0.82  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
    mix-blend-mode: screen;
    animation: frost-drift 38s linear infinite;
    will-change: transform;
}

@keyframes frost-drift {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-120px, -180px, 0); }
}

/* ============================================================
   tide-cadence ripple — heartbeat
   ============================================================ */

.tide-ripple {
    position: fixed;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 8px;
    pointer-events: none;
    z-index: 8;
    opacity: 0.45;
}
.tide-ripple svg { width: 100%; height: 100%; }
.tide-ripple svg path {
    transform-origin: center;
    animation: tide-ripple 11s ease-in-out infinite;
}

@keyframes tide-ripple {
    0%   { transform: translateY(0px)   scaleY(1); opacity: 0.18; }
    50%  { transform: translateY(-1px)  scaleY(1.6); opacity: 0.42; }
    100% { transform: translateY(0px)   scaleY(1); opacity: 0.18; }
}

/* ============================================================
   lens-flare — single, slow, near-invisible streak
   ============================================================ */

.lens-flare {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 12;
    opacity: 0;
    will-change: opacity, transform;
}

.lens-flare.is-active {
    animation: lens-cycle 2400ms ease-in-out 1;
}

@keyframes lens-cycle {
    0%   { opacity: 0; }
    18%  { opacity: 1; }
    62%  { opacity: 1; }
    100% { opacity: 0; }
}

.lens-streak {
    position: absolute;
    top: -10vh;
    left: -10vw;
    width: 120vw;
    height: 22vh;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(232, 176, 104, 0.0) 30%,
        rgba(232, 176, 104, 0.06) 50%,
        rgba(232, 176, 104, 0.0) 70%,
        transparent 100%
    );
    filter: blur(28px);
    transform: rotate(-8deg);
}

.lens-ghost {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.4;
}
.lens-ghost-1 {
    width: 320px; height: 320px;
    left: 18%; top: 14%;
    background: radial-gradient(circle, rgba(232, 176, 104, 0.05) 0%, transparent 70%);
}
.lens-ghost-2 {
    width: 220px; height: 220px;
    left: 44%; top: 38%;
    background: radial-gradient(circle, rgba(200, 215, 203, 0.04) 0%, transparent 70%);
}
.lens-ghost-3 {
    width: 140px; height: 140px;
    left: 72%; top: 56%;
    background: radial-gradient(circle, rgba(232, 176, 104, 0.04) 0%, transparent 70%);
}

/* ============================================================
   instrument rail (left edge — 56px)
   ============================================================ */

.instrument-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail-w);
    background: linear-gradient(
        180deg,
        rgba(21, 37, 46, 0.82) 0%,
        rgba(10, 18, 24, 0.88) 100%
    );
    border-right: 1px solid var(--c-hairline);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 0 22px 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rail-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 4px;
    text-align: center;
    color: var(--c-seaglass);
}

.rail-section + .rail-section {
    border-top: 1px dashed rgba(58, 85, 94, 0.5);
}

.rail-glyph {
    font-family: var(--f-glyph);
    font-size: 16px;
    color: var(--c-foam);
    opacity: 0.78;
    letter-spacing: 0;
}

.rail-station-id,
.rail-label,
.rail-readout-sm {
    font-family: var(--f-readout);
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--c-seaglass);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    line-height: 1;
}

.rail-station-id {
    color: var(--c-overcast);
    margin-top: 4px;
}

.rail-readout {
    font-family: var(--f-readout);
    font-size: 11.5px;
    color: var(--c-foam);
    letter-spacing: 0.06em;
    line-height: 1;
    transition: opacity 600ms ease-in-out;
}

.rail-unit {
    font-family: var(--f-readout);
    font-size: 9px;
    color: var(--c-seaglass);
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.rail-tide-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tide-glyph {
    font-family: var(--f-glyph);
    font-size: 14px;
    color: var(--c-seaglass);
    transition: transform 1200ms ease-in-out;
}

.rail-fault {
    margin-top: auto;
}

.rail-fault-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-amber);
    box-shadow:
        0 0 8px rgba(232, 176, 104, 0.55),
        0 0 18px rgba(232, 176, 104, 0.18),
        inset 0 0 4px rgba(255, 220, 160, 0.6);
    animation: amber-breath 4.4s ease-in-out infinite;
}

@keyframes amber-breath {
    0%, 100% { opacity: 0.78; box-shadow: 0 0 8px rgba(232, 176, 104, 0.45), 0 0 14px rgba(232, 176, 104, 0.12), inset 0 0 4px rgba(255, 220, 160, 0.55); }
    50%      { opacity: 1.00; box-shadow: 0 0 12px rgba(232, 176, 104, 0.65), 0 0 24px rgba(232, 176, 104, 0.22), inset 0 0 5px rgba(255, 220, 160, 0.7); }
}

.rail-fault-caption {
    font-family: var(--f-readout);
    font-size: 8.5px;
    color: var(--c-amber);
    opacity: 0.6;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    line-height: 1;
    margin-top: 4px;
}

/* axis tick rail */
.rail-axis-track {
    position: relative;
    width: 1px;
    height: 110px;
    background: rgba(58, 85, 94, 0.6);
    margin: 0 auto;
}
.rail-axis-tick {
    position: absolute;
    left: -3px;
    width: 7px;
    height: 1px;
    background: var(--c-hairline);
}
.rail-axis-tick[data-stratum="i"]   { top: 0%; }
.rail-axis-tick[data-stratum="ii"]  { top: 20%; }
.rail-axis-tick[data-stratum="iii"] { top: 40%; }
.rail-axis-tick[data-stratum="iv"]  { top: 60%; }
.rail-axis-tick[data-stratum="v"]   { top: 80%; }
.rail-axis-tick[data-stratum="vi"]  { top: 100%; }

.rail-axis-marker {
    position: absolute;
    left: -4px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--c-foam);
    background: rgba(200, 215, 203, 0.18);
    transform: translateY(-50%);
    top: 0;
    transition: top 600ms cubic-bezier(0.45, 0, 0.18, 1);
}

.rail-foot-line {
    font-family: var(--f-readout);
    font-size: 8.5px;
    letter-spacing: 0.08em;
    color: var(--c-hairline);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    line-height: 1;
}

/* ============================================================
   floating quiet nav (upper-right)
   ============================================================ */

.quiet-nav {
    position: fixed;
    top: 28px;
    right: 36px;
    z-index: 22;
    display: flex;
    gap: 22px;
    padding: 10px 16px;
    background: rgba(21, 37, 46, 0.42);
    border: 1px solid var(--c-hairline);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1px;
}

.nav-link {
    font-family: var(--f-readout);
    font-size: 11px;
    color: var(--c-seaglass);
    letter-spacing: 0.08em;
    transition: color 600ms ease-in-out, text-shadow 600ms ease-in-out;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--c-foam);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--c-foam);
    text-shadow: 0.5px 0 0 rgba(232, 176, 104, 0.18), -0.5px 0 0 rgba(140, 175, 180, 0.22);
}
.nav-link:hover::after,
.nav-link.is-current::after { transform: scaleX(1); }

.nav-link.is-current {
    color: var(--c-foam);
}

/* ============================================================
   ocean — damped scroll viewport
   ============================================================ */

.ocean {
    position: relative;
    z-index: 4;
    margin-left: var(--rail-w);
    width: calc(100% - var(--rail-w));
}

.ocean-inner {
    /* damped scroll target — translates via JS */
    will-change: transform;
}

/* ============================================================
   stratum
   ============================================================ */

.stratum {
    position: relative;
    min-height: 120vh;
    padding: 10vh 8vw 12vh 8vw;
    overflow: hidden;
}

.stratum + .stratum {
    border-top: 1px solid rgba(58, 85, 94, 0.18);
}

.stratum-i   { background: radial-gradient(900px 600px at 60% 30%, rgba(40, 70, 86, 0.18), transparent 70%); }
.stratum-ii  { background: radial-gradient(900px 600px at 40% 50%, rgba(30, 56, 70, 0.20), transparent 72%); }
.stratum-iii { background: radial-gradient(1100px 800px at 50% 50%, rgba(22, 44, 56, 0.26), transparent 75%); }
.stratum-iv  { background: radial-gradient(900px 700px at 50% 50%, rgba(18, 36, 46, 0.30), transparent 76%); }
.stratum-v   { background: radial-gradient(700px 700px at 50% 50%, rgba(14, 28, 36, 0.40), transparent 78%); }
.stratum-vi  {
    min-height: 100vh;
    background: radial-gradient(800px 800px at 60% 50%, rgba(10, 18, 24, 0.95), var(--c-abyss) 80%);
}

.stratum-marker {
    position: absolute;
    top: 4vh;
    left: 8vw;
    display: flex;
    gap: 16px;
    align-items: baseline;
    z-index: 2;
}
.stratum-marker-dim { opacity: 0.6; }

.stratum-index {
    font-family: var(--f-glyph);
    font-size: 18px;
    color: var(--c-seaglass);
    letter-spacing: 0.04em;
}
.stratum-name {
    font-family: var(--f-readout);
    font-size: 11px;
    color: var(--c-overcast);
    letter-spacing: 0.18em;
}
.stratum-depth {
    font-family: var(--f-readout);
    font-size: 11px;
    color: var(--c-amber);
    opacity: 0.72;
    letter-spacing: 0.12em;
}

/* ============================================================
   stratum headline (mournful, IBM Plex Mono 200)
   ============================================================ */

.stratum-headline {
    font-family: var(--f-display);
    font-weight: 200;
    font-size: clamp(2.6rem, 6.4vw, 6.6rem);
    line-height: 0.96;
    letter-spacing: -0.02em;
    color: var(--c-foam);
    margin: 12vh 0 8vh 0;
    max-width: 1080px;
    text-shadow:
         0.5px 0 0 rgba(232, 176, 104, 0.06),
        -0.5px 0 0 rgba(140, 175, 180, 0.10);
    position: relative;
    z-index: 2;
    transition: letter-spacing 1800ms ease-in-out;
    will-change: letter-spacing, opacity;
}

.stratum-headline-faded { color: var(--c-seaglass); opacity: 0.78; }
.stratum-headline-deeper { color: var(--c-overcast); opacity: 0.7; }

/* ============================================================
   panel bed — drifting modular blocks
   ============================================================ */

.panel-bed {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.panel-bed-three {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
}
.panel-bed-four {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 10px;
}
.panel-bed-five {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 8px;
    align-items: start;
}
.panel-bed-two {
    grid-template-columns: repeat(2, minmax(360px, 520px));
    justify-content: space-between;
    gap: 4vw;
    margin-top: 8vh;
}
.panel-bed-archive {
    grid-template-columns: minmax(420px, 720px);
    justify-content: center;
}

@media (max-width: 1100px) {
    .panel-bed-three,
    .panel-bed-four,
    .panel-bed-five {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
    .panel-bed-two {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .panel-bed-three,
    .panel-bed-four,
    .panel-bed-five {
        grid-template-columns: 1fr;
    }
    .stratum { padding: 12vh 6vw; }
    .quiet-nav { right: 12px; gap: 12px; padding: 8px 10px; }
}

/* ============================================================
   panel — semi-translucent crystalline
   ============================================================ */

.panel {
    --panel-z: 0;
    --panel-x: 0px;
    --panel-y: 0px;
    --panel-rot: 0deg;
    --panel-opacity: 0.9;
    --panel-blur: 0.5px;

    position: relative;
    background: rgba(39, 66, 77, 0.86);
    border: 1px solid var(--c-hairline);
    color: var(--c-overcast);
    padding: 22px 22px 18px 22px;
    transform:
        translate3d(var(--panel-x), var(--panel-y), 0)
        rotate(var(--panel-rot));
    transition: transform 1200ms ease-in-out, opacity 1200ms ease-in-out, backdrop-filter 1200ms ease-in-out;
    backdrop-filter: blur(var(--panel-blur));
    -webkit-backdrop-filter: blur(var(--panel-blur));
    box-shadow:
        inset 0 1px 0 rgba(200, 215, 203, 0.04),
        inset 0 -1px 0 rgba(10, 18, 24, 0.5),
        0 8px 18px rgba(10, 18, 24, 0.45),
        0 1px 0 rgba(58, 85, 94, 0.3);
    opacity: var(--panel-opacity);
    will-change: transform, opacity, backdrop-filter, width;
    animation: panel-breath 6.4s ease-in-out infinite;
}

.panel::before {
    /* hairline chrome highlight (Y2K bevel reduced) */
    content: '';
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(200, 215, 203, 0.08);
    pointer-events: none;
}

.panel::after {
    /* soft chromatic-aberration seam on right edge */
    content: '';
    position: absolute;
    top: 8%;
    bottom: 8%;
    right: -1px;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(232, 176, 104, 0.10) 30%,
        rgba(140, 175, 180, 0.10) 70%,
        transparent 100%
    );
    pointer-events: none;
}

@keyframes panel-breath {
    0%, 100% {
        opacity: var(--panel-opacity);
        backdrop-filter: blur(var(--panel-blur));
        -webkit-backdrop-filter: blur(var(--panel-blur));
    }
    50% {
        opacity: calc(var(--panel-opacity) + 0.04);
        backdrop-filter: blur(calc(var(--panel-blur) + 1px));
        -webkit-backdrop-filter: blur(calc(var(--panel-blur) + 1px));
    }
}

.panel-receding { --panel-opacity: 0.62; --panel-blur: 1.5px; }
.panel-thinned  { --panel-opacity: 0.50; --panel-blur: 2px;  }

/* per-stratum drift baseline */
.stratum-ii  .panel { --panel-opacity: 0.82; --panel-blur: 0.8px; }
.stratum-iii .panel { --panel-opacity: 0.74; --panel-blur: 1.0px; background: rgba(34, 58, 70, 0.78); }
.stratum-iv  .panel { --panel-opacity: 0.62; --panel-blur: 1.6px; background: rgba(28, 50, 60, 0.66); }
.stratum-v   .panel { --panel-opacity: 0.58; --panel-blur: 2.0px; background: rgba(22, 42, 52, 0.62); }

/* panel-meta */
.panel-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(58, 85, 94, 0.5);
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.panel-id {
    font-family: var(--f-readout);
    font-size: 10px;
    color: var(--c-foam);
    letter-spacing: 0.1em;
    opacity: 0.86;
}
.panel-stamp {
    font-family: var(--f-readout);
    font-size: 9.5px;
    color: var(--c-seaglass);
    letter-spacing: 0.08em;
    opacity: 0.74;
}

/* panel readouts and copy */
.panel-readout {
    color: var(--c-overcast);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.panel-caption {
    font-family: var(--f-readout);
    font-size: 10px;
    color: var(--c-seaglass);
    letter-spacing: 0.08em;
    margin-top: 8px;
    opacity: 0.72;
    text-align: center;
}

.panel-epitaph {
    color: var(--c-overcast);
    font-size: 11.5px;
    line-height: 1.6;
    margin-top: 10px;
    opacity: 0.84;
    border-left: 1px solid rgba(58, 85, 94, 0.7);
    padding-left: 10px;
}

.panel-list {
    list-style: none;
    margin-top: 10px;
}
.panel-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted rgba(58, 85, 94, 0.4);
    padding: 4px 0;
    font-size: 11px;
}
.panel-list-key {
    color: var(--c-seaglass);
    letter-spacing: 0.08em;
}
.panel-list-val {
    color: var(--c-foam);
    opacity: 0.82;
}

.panel-foot {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px dashed rgba(58, 85, 94, 0.4);
    padding-top: 8px;
}
.panel-tag {
    font-family: var(--f-readout);
    font-size: 9px;
    color: var(--c-seaglass);
    letter-spacing: 0.1em;
    border: 1px solid rgba(58, 85, 94, 0.6);
    padding: 2px 6px;
    background: rgba(20, 36, 46, 0.25);
}

/* prose panel (stratum iv) */
.panel-prose .panel-prose-line {
    color: var(--c-overcast);
    font-size: 13.5px;
    line-height: 1.85;
    margin-bottom: 14px;
    text-align: left;
}
.panel-prose-line-quiet {
    color: var(--c-seaglass);
    opacity: 0.7;
    font-size: 12.5px;
}

/* ============================================================
   shard stage
   ============================================================ */

.shard-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 220px;
    margin: 8px auto;
    display: grid;
    place-items: center;
}
.shard-stage-sm {
    max-height: 140px;
}

.shard {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-origin: center;
    animation: shard-rotate 22s ease-in-out infinite, shard-morph 14s ease-in-out infinite;
    will-change: transform;
    filter:
        drop-shadow( 0.5px 0 0 rgba(232, 176, 104, 0.10))
        drop-shadow(-0.5px 0 0 rgba(140, 175, 180, 0.14));
}

@keyframes shard-rotate {
    0%   { transform: rotate(0deg)     scale(1.0); }
    25%  { transform: rotate(4deg)     scale(1.02); }
    50%  { transform: rotate(0deg)     scale(0.98); }
    75%  { transform: rotate(-3deg)    scale(1.01); }
    100% { transform: rotate(0deg)     scale(1.0); }
}

@keyframes shard-morph {
    0%, 100% { filter: drop-shadow(0.5px 0 0 rgba(232,176,104,0.10)) drop-shadow(-0.5px 0 0 rgba(140,175,180,0.14)) blur(0px); }
    50%      { filter: drop-shadow(0.8px 0 0 rgba(232,176,104,0.16)) drop-shadow(-0.8px 0 0 rgba(140,175,180,0.20)) blur(0.4px); }
}

.shard-face {
    fill: rgba(40, 70, 86, 0.32);
    stroke: rgba(140, 175, 180, 0.42);
    stroke-width: 0.6;
    transition: fill 1200ms ease-in-out, stroke 1200ms ease-in-out;
}
.shard-face-1 { fill: rgba(36, 60, 72, 0.40); }
.shard-face-2 { fill: rgba(58, 85, 94, 0.32); }
.shard-face-3 { fill: rgba(28, 48, 58, 0.46); }

.shard-line {
    fill: none;
    stroke: rgba(92, 120, 128, 0.30);
    stroke-width: 0.5;
    transition: stroke 800ms ease-in-out;
}

.shard-core {
    fill: rgba(200, 215, 203, 0.55);
    filter: blur(0.4px);
}

.panel-with-shard.is-near-cursor .shard-line {
    stroke: rgba(200, 215, 203, 0.62);
}
.panel-with-shard.is-near-cursor .shard-face {
    stroke: rgba(200, 215, 203, 0.66);
}

/* ============================================================
   archive (stratum v)
   ============================================================ */

.archive-window {
    position: relative;
    height: 360px;
    overflow: hidden;
    border: 1px solid rgba(58, 85, 94, 0.5);
    background: rgba(14, 26, 34, 0.55);
    margin-top: 14px;
    /* fade top + bottom */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.archive-feed {
    list-style: none;
    margin: 0;
    padding: 22px 24px;
    will-change: transform;
}

.archive-line {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px dotted rgba(58, 85, 94, 0.32);
    font-size: 11.5px;
    line-height: 1.5;
}
.archive-ts {
    font-family: var(--f-readout);
    color: var(--c-seaglass);
    letter-spacing: 0.06em;
    opacity: 0.78;
    white-space: nowrap;
}
.archive-note {
    color: var(--c-overcast);
    opacity: 0.92;
}

/* ============================================================
   stratum vi — darkmute (final state)
   ============================================================ */

.darkmute-stage {
    position: relative;
    height: 80vh;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.darkmute-shard {
    position: absolute;
    width: 220px;
    height: 220px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.78;
    will-change: transform, opacity;
    transition: opacity 3000ms ease-in-out;
}

.darkmute-shard .shard {
    animation: shard-rotate 18s ease-in-out infinite, shard-morph 12s ease-in-out infinite;
}

.shard-final .shard-face { fill: rgba(36, 60, 72, 0.32); }
.shard-final .shard-line { stroke: rgba(140, 175, 180, 0.18); }

.darkmute-fault {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.62;
}
.darkmute-fault-light {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--c-amber);
    box-shadow: 0 0 12px rgba(232, 176, 104, 0.6), 0 0 24px rgba(232, 176, 104, 0.18);
    animation: amber-final 6.4s ease-in-out infinite;
}
@keyframes amber-final {
    0%, 100% { opacity: 0.86; }
    50%      { opacity: 1.00; }
}
.darkmute-fault-caption {
    font-family: var(--f-readout);
    font-size: 10px;
    color: var(--c-amber);
    letter-spacing: 0.1em;
    opacity: 0.78;
}

.darkmute-settle {
    position: absolute;
    top: 14vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.settle-line {
    font-family: var(--f-display);
    font-weight: 200;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    color: var(--c-seaglass);
    letter-spacing: 0.04em;
    opacity: 0.86;
}
.settle-line-dim {
    color: var(--c-overcast);
    opacity: 0.62;
    font-size: clamp(0.95rem, 1.8vw, 1.4rem);
}

/* ============================================================
   small-screen rail collapse
   ============================================================ */

@media (max-width: 720px) {
    .instrument-rail {
        width: 40px;
        padding: 14px 0;
    }
    :root { --rail-w: 40px; }
    .rail-foot { display: none; }
    .rail-axis { display: none; }
    .rail-glyph { font-size: 12px; }
    .rail-readout { font-size: 10px; }
}

/* ============================================================
   reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
