/* vtubermanager.com — seapunk underwater digital nightclub
   Colors:
     --deep-trench      #0A0E1A
     --midnight-current #0D1526
     --abyss-floor      #060A14
     --abyssal-gold     #C4A62C
     --biolum-amber     #E8C840
     --sunken-brass     #8A7A3C
     --bleached-coral   #D4C5B0
     --coral-signal     #E8A87C
*/

:root {
    --deep-trench: #0A0E1A;
    --midnight-current: #0D1526;
    --abyss-floor: #060A14;
    --abyssal-gold: #C4A62C;
    --biolum-amber: #E8C840;
    --sunken-brass: #8A7A3C;
    --bleached-coral: #D4C5B0;
    --coral-signal: #E8A87C;
    --bg-depth: var(--deep-trench);
}

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

html {
    scroll-behavior: smooth;
    background: var(--deep-trench);
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--bleached-coral);
    background-color: var(--bg-depth);
    transition: background-color 2s ease;
    min-height: 100vh;
    overflow-x: hidden;
    padding-left: 48px;
    position: relative;
}

body[data-zone="1"] { --bg-depth: #0A0E1A; }
body[data-zone="2"] { --bg-depth: #0D1526; }
body[data-zone="3"] { --bg-depth: #060A14; }

/* Noise overlay — deep water particulate */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image:
      radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
      radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 1px;
    opacity: 0.04;
    mix-blend-mode: screen;
    animation: drift 20s linear infinite alternate;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to   { transform: translate(32px, 16px); }
}

/* Decorative angular slash background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
      linear-gradient(45deg, transparent 49.5%, rgba(196,166,44,0.04) 49.5%, rgba(196,166,44,0.04) 50.5%, transparent 50.5%),
      linear-gradient(-45deg, transparent 49.5%, rgba(196,166,44,0.03) 49.5%, rgba(196,166,44,0.03) 50.5%, transparent 50.5%);
    background-size: 120px 120px, 200px 200px;
    opacity: 0.7;
}

/* ========================================================== */
/*  Navigation Spine                                           */
/* ========================================================== */

.spine {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 20px 0;
    z-index: 100;
    border-right: 1px solid rgba(196,166,44,0.15);
    background: linear-gradient(to right, rgba(10,14,26,0.9), rgba(10,14,26,0));
    height: auto;
}

.spine-icon {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 400ms ease, filter 400ms ease;
}

.spine-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--abyssal-gold);
    stroke: var(--abyssal-gold);
    stroke-width: 0.5;
}

.spine-icon svg .inner {
    fill: var(--deep-trench);
}

.spine-icon:hover,
.spine-icon.active {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(196,166,44,0.6));
}

.spine-tip {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--coral-signal);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
    background: rgba(10,14,26,0.85);
    border: 1px solid var(--sunken-brass);
    padding: 4px 10px;
}

.spine-icon:hover .spine-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ========================================================== */
/*  Descent Sequence (Hero)                                    */
/* ========================================================== */

.descent {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 40px;
    z-index: 1;
}

.descent-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.logotype {
    font-family: 'Bungee', 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--abyssal-gold);
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(196,166,44,0.25);
    margin-bottom: 20px;
}

.descent-sub {
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--coral-signal);
    margin-bottom: 60px;
}

.sonar-line {
    width: 0;
    height: 2px;
    background: var(--abyssal-gold);
    margin: 0 auto 24px;
    max-width: 600px;
    animation: drawLine 1.5s ease-out 0.4s forwards;
    box-shadow: 0 0 12px rgba(196,166,44,0.5);
}

@keyframes drawLine {
    from { width: 0; }
    to   { width: 100%; }
}

.sonar-fracture {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    animation: fractureAppear 1s ease 1.9s forwards;
    margin-bottom: 48px;
}

.sonar-fracture span {
    display: block;
    height: 1px;
    background: var(--abyssal-gold);
    margin: 0 auto;
    animation: drip 3.5s ease-in-out infinite;
}

.sonar-fracture span:nth-child(1) { width: 80%; opacity: 0.9; animation-delay: 0s; }
.sonar-fracture span:nth-child(2) { width: 60%; opacity: 0.7; animation-delay: 0.4s; }
.sonar-fracture span:nth-child(3) { width: 45%; opacity: 0.5; animation-delay: 0.8s; }
.sonar-fracture span:nth-child(4) { width: 30%; opacity: 0.35; animation-delay: 1.2s; }
.sonar-fracture span:nth-child(5) { width: 18%; opacity: 0.2; animation-delay: 1.6s; }

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

@keyframes drip {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(14px); }
}

.descent-depth {
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sunken-brass);
}

/* Sonar pulse in corner */
.sonar-container {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 1;
}

.sonar-container::before,
.sonar-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--abyssal-gold);
    animation: sonarPulse 3s linear infinite;
    opacity: 0;
}

.sonar-container::after {
    animation-delay: 1.5s;
}

@keyframes sonarPulse {
    0%   { transform: scale(0.3); opacity: 0.9; }
    70%  { opacity: 0.15; }
    100% { transform: scale(1.1); opacity: 0; }
}

.depth-ticker {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--sunken-brass);
}

.depth-ticker span {
    position: relative;
    padding: 0 10px;
}

.depth-ticker span + span::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--sunken-brass);
}

/* ========================================================== */
/*  Zones                                                      */
/* ========================================================== */

.zone {
    padding: 120px 48px 120px 48px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.zone-header {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: left;
    padding: 0 20px;
}

.zone-tag {
    display: block;
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--coral-signal);
    margin-bottom: 24px;
}

.zone-title {
    font-family: 'Bungee', 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--abyssal-gold);
    line-height: 1.15;
    margin-bottom: 28px;
    text-shadow: 0 0 16px rgba(196,166,44,0.15);
}

.zone-lead {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.75;
    color: var(--bleached-coral);
    max-width: 720px;
}

/* ========================================================== */
/*  Module Grid                                                */
/* ========================================================== */

.module-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: 110px;
    grid-auto-flow: dense;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.module {
    position: relative;
    background: rgba(10,14,26,0.55);
    border: 2px solid var(--abyssal-gold);
    padding: 24px 26px;
    overflow: hidden;
    box-shadow: inset 0 0 1px rgba(196,166,44,0.3), 0 0 16px rgba(196,166,44,0.05);
    transition: box-shadow 500ms ease, transform 500ms ease, border-color 500ms ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 900ms ease var(--stagger, 0ms), transform 900ms ease var(--stagger, 0ms), box-shadow 500ms ease, border-color 500ms ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.module:hover {
    box-shadow: inset 0 0 1px rgba(196,166,44,0.45), 0 0 32px rgba(196,166,44,0.12);
    border-color: var(--biolum-amber);
}

.module-2x2 { grid-column: span 2; grid-row: span 2; }
.module-4x2 { grid-column: span 4; grid-row: span 2; }
.module-2x4 { grid-column: span 2; grid-row: span 4; }
.module-1x1 { grid-column: span 1; grid-row: span 1; }

.module-label {
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sunken-brass);
    display: block;
    margin-bottom: 4px;
}

.module-title {
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-signal);
    line-height: 1.2;
    margin-bottom: 8px;
}

.module p {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    line-height: 1.6;
    color: var(--bleached-coral);
}

.module-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(196,166,44,0.2);
}

.module-meta li {
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--abyssal-gold);
    padding: 4px 10px;
    border: 1px solid var(--sunken-brass);
}

.module-footnote {
    margin-top: auto;
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.65rem !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sunken-brass) !important;
}

/* Feature module corner accents */
.feature .module-frame {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--biolum-amber);
    z-index: 3;
}
.module-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.module-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.module-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.module-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* 1x1 node modules */
.module.node {
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px;
    min-height: 110px;
}

.big-stat {
    font-family: 'Bungee', 'Work Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(1.6rem, 3vw, 2rem) !important;
    letter-spacing: 0.04em;
    color: var(--abyssal-gold) !important;
    line-height: 1 !important;
    text-shadow: 0 0 12px rgba(196,166,44,0.25);
    margin-top: auto;
}

.small-stat {
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--coral-signal) !important;
}

/* ========================================================== */
/*  Decorative module visuals                                  */
/* ========================================================== */

.data-stream {
    position: absolute;
    right: 16px;
    top: 16px;
    bottom: 16px;
    width: 60px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: flex-start;
    opacity: 0.6;
    pointer-events: none;
}

.data-stream span {
    display: block;
    width: 2px;
    background: var(--abyssal-gold);
    animation: streamDrop 2.4s ease-in-out infinite;
}

.data-stream span:nth-child(1) { height: 30%; animation-delay: 0s; }
.data-stream span:nth-child(2) { height: 55%; animation-delay: 0.2s; }
.data-stream span:nth-child(3) { height: 20%; animation-delay: 0.4s; }
.data-stream span:nth-child(4) { height: 70%; animation-delay: 0.6s; }
.data-stream span:nth-child(5) { height: 40%; animation-delay: 0.8s; }
.data-stream span:nth-child(6) { height: 85%; animation-delay: 1.0s; }
.data-stream span:nth-child(7) { height: 25%; animation-delay: 1.2s; }
.data-stream span:nth-child(8) { height: 60%; animation-delay: 1.4s; }

@keyframes streamDrop {
    0%, 100% { transform: scaleY(0.6); opacity: 0.4; transform-origin: top; }
    50%      { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

.wireframe-horizon {
    width: 100%;
    flex: 1;
    margin-top: 12px;
    min-height: 60px;
}

.wireframe-horizon svg {
    width: 100%;
    height: 100%;
}

.wireframe-horizon polyline {
    fill: none;
    stroke: var(--abyssal-gold);
    stroke-width: 1;
    opacity: 0.7;
}

.wireframe-horizon polyline:nth-child(2) {
    stroke: var(--coral-signal);
    opacity: 0.4;
}

.vault-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.vault-lines span {
    display: block;
    height: 1px;
    background: var(--sunken-brass);
    animation: vaultShimmer 4s ease-in-out infinite;
}

.vault-lines span:nth-child(1) { width: 100%; animation-delay: 0s; }
.vault-lines span:nth-child(2) { width: 82%; animation-delay: 0.3s; }
.vault-lines span:nth-child(3) { width: 65%; animation-delay: 0.6s; }
.vault-lines span:nth-child(4) { width: 90%; animation-delay: 0.9s; }
.vault-lines span:nth-child(5) { width: 72%; animation-delay: 1.2s; }
.vault-lines span:nth-child(6) { width: 55%; animation-delay: 1.5s; }

@keyframes vaultShimmer {
    0%, 100% { background: var(--sunken-brass); }
    50%      { background: var(--abyssal-gold); }
}

.fish-school {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 70%;
    overflow: hidden;
    pointer-events: none;
}

.fish {
    position: absolute;
    font-family: 'Bungee', sans-serif;
    color: var(--abyssal-gold);
    font-size: 14px;
    animation: swim 8s linear infinite;
    opacity: 0.7;
}

.fish:nth-child(1) { top: 10%;  animation-delay: 0s;   font-size: 16px; }
.fish:nth-child(2) { top: 20%;  animation-delay: 1.2s; font-size: 12px; }
.fish:nth-child(3) { top: 30%;  animation-delay: 2.4s; font-size: 18px; color: var(--biolum-amber); }
.fish:nth-child(4) { top: 45%;  animation-delay: 0.8s; font-size: 14px; }
.fish:nth-child(5) { top: 55%;  animation-delay: 3.2s; font-size: 10px; }
.fish:nth-child(6) { top: 65%;  animation-delay: 1.8s; font-size: 16px; color: var(--coral-signal); }
.fish:nth-child(7) { top: 78%;  animation-delay: 2.0s; font-size: 12px; }
.fish:nth-child(8) { top: 88%;  animation-delay: 4.0s; font-size: 14px; }

@keyframes swim {
    0%   { right: -10%; }
    100% { right: 110%; }
}

.constellation {
    width: 100%;
    flex: 1;
    margin-top: 12px;
    min-height: 80px;
}

.constellation svg {
    width: 100%;
    height: 100%;
}

.constellation circle {
    fill: var(--biolum-amber);
    animation: starTwinkle 3s ease-in-out infinite;
}

.constellation circle:nth-child(odd) {
    animation-delay: 1.5s;
    fill: var(--abyssal-gold);
}

.constellation line {
    stroke: var(--abyssal-gold);
    stroke-width: 0.5;
    opacity: 0.4;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; filter: drop-shadow(0 0 4px var(--biolum-amber)); }
}

/* ========================================================== */
/*  Burst Marker                                               */
/* ========================================================== */

.burst-marker {
    position: absolute;
    top: 40px;
    right: 60px;
    width: 120px;
    height: 120px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 600ms ease;
}

.burst-marker.fired {
    opacity: 1;
}

.burst-marker svg {
    width: 100%;
    height: 100%;
}

.burst-rays line {
    stroke: var(--abyssal-gold);
    stroke-width: 2;
    transform-origin: 50px 50px;
    transform: scale(0);
    opacity: 0;
}

.burst-marker.fired .burst-rays line {
    animation: burstRay 1.2s ease-out forwards;
}

.burst-marker.fired .burst-rays line:nth-child(1) { animation-delay: 0s; }
.burst-marker.fired .burst-rays line:nth-child(2) { animation-delay: 0.05s; }
.burst-marker.fired .burst-rays line:nth-child(3) { animation-delay: 0.1s; }
.burst-marker.fired .burst-rays line:nth-child(4) { animation-delay: 0.15s; }
.burst-marker.fired .burst-rays line:nth-child(5) { animation-delay: 0.2s; }
.burst-marker.fired .burst-rays line:nth-child(6) { animation-delay: 0.25s; }
.burst-marker.fired .burst-rays line:nth-child(7) { animation-delay: 0.3s; }
.burst-marker.fired .burst-rays line:nth-child(8) { animation-delay: 0.35s; }

@keyframes burstRay {
    0%   { transform: scale(0); opacity: 0; }
    40%  { transform: scale(1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

.burst-label {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--coral-signal);
    white-space: nowrap;
}

/* ========================================================== */
/*  Contact Section                                            */
/* ========================================================== */

.contact {
    padding: 120px 48px 40px;
    position: relative;
    z-index: 1;
}

.contact-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px;
    border: 2px solid var(--abyssal-gold);
    background: rgba(6,10,20,0.7);
    box-shadow: inset 0 0 1px rgba(196,166,44,0.3), 0 0 32px rgba(196,166,44,0.08);
    position: relative;
}

.contact-inner::before,
.contact-inner::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid var(--biolum-amber);
}

.contact-inner::before {
    top: -8px; left: -8px;
    border-right: none; border-bottom: none;
}

.contact-inner::after {
    bottom: -8px; right: -8px;
    border-left: none; border-top: none;
}

.contact-title {
    font-family: 'Bungee', 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--abyssal-gold);
    margin: 20px 0 24px;
    text-shadow: 0 0 16px rgba(196,166,44,0.2);
}

.contact-lead {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    color: var(--bleached-coral);
    margin-bottom: 40px;
    max-width: 560px;
}

.signal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.signal-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal-form label span {
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--coral-signal);
}

.signal-form input,
.signal-form textarea {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    background: rgba(10,14,26,0.6);
    border: 1px solid var(--sunken-brass);
    color: var(--bleached-coral);
    padding: 12px 14px;
    resize: vertical;
    transition: border-color 300ms ease, background 300ms ease;
}

.signal-form input:focus,
.signal-form textarea:focus {
    outline: none;
    border-color: var(--abyssal-gold);
    background: rgba(10,14,26,0.9);
}

.signal-form input::placeholder,
.signal-form textarea::placeholder {
    color: var(--sunken-brass);
    opacity: 0.7;
}

.signal-btn {
    appearance: none;
    background: transparent;
    border: 2px solid var(--abyssal-gold);
    color: var(--abyssal-gold);
    font-family: 'Bungee', 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 16px 32px;
    cursor: pointer;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transition: background 400ms ease, color 400ms ease, box-shadow 400ms ease;
    box-shadow: 0 0 16px rgba(196,166,44,0.1);
}

.signal-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 400ms ease;
}

.signal-btn:hover {
    background: var(--abyssal-gold);
    color: var(--deep-trench);
    box-shadow: 0 0 32px rgba(196,166,44,0.35);
}

.signal-btn:hover svg {
    transform: translateX(6px);
}

.signal-status {
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--biolum-amber);
    min-height: 1em;
    opacity: 0;
    transition: opacity 400ms ease;
}

.signal-status.shown {
    opacity: 1;
}

.abyss-footer {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 28px 20px;
    border-top: 1px solid var(--sunken-brass);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--sunken-brass);
    text-align: center;
}

/* ========================================================== */
/*  Depth HUD                                                  */
/* ========================================================== */

.depth-hud {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 200px;
    padding: 14px 16px;
    background: rgba(10,14,26,0.85);
    border: 1px solid var(--sunken-brass);
    z-index: 50;
    font-family: 'Bungee Hairline', 'Work Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--coral-signal);
    box-shadow: 0 0 24px rgba(196,166,44,0.08);
}

.hud-label {
    display: block;
    color: var(--sunken-brass);
    margin-bottom: 4px;
    font-size: 0.6rem;
}

.hud-value {
    display: block;
    font-family: 'Bungee', 'Work Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--abyssal-gold);
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(196,166,44,0.4);
    margin-bottom: 4px;
}

.hud-zone {
    display: block;
    font-size: 0.6rem;
    margin-bottom: 10px;
}

.hud-bar {
    height: 3px;
    background: rgba(138,122,60,0.3);
    overflow: hidden;
}

.hud-bar-fill {
    height: 100%;
    width: 0;
    background: var(--abyssal-gold);
    box-shadow: 0 0 8px var(--abyssal-gold);
    transition: width 300ms ease;
}

/* ========================================================== */
/*  Responsive                                                 */
/* ========================================================== */

@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 100px;
    }
    .module-4x2 { grid-column: span 4; }
    .module-2x4 { grid-column: span 2; grid-row: span 3; }
    .zone { padding: 80px 24px; }
    .contact { padding: 80px 24px 40px; }
    .contact-inner { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .depth-hud { width: 160px; bottom: 12px; right: 12px; padding: 10px 12px; }
    .depth-ticker { display: none; }
}

@media (max-width: 560px) {
    body { padding-left: 40px; }
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .module-2x2, .module-4x2, .module-2x4 { grid-column: span 2; }
    .module-1x1 { grid-column: span 1; }
    .spine { width: 40px; gap: 20px; }
    .burst-marker { width: 80px; height: 80px; top: 20px; right: 20px; }
    .sonar-container { width: 90px; height: 90px; top: 20px; right: 20px; }
}
