:root {
    --bg-space: #000000;
    --monolith-bg: #0a0a0a;
    --text-white: #ffffff;
    --hal-red: #ff0000;
    --interface-border: rgba(255, 255, 255, 0.15);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-space);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Anchor to bottom */
    align-items: center;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Day/Night Atmosphere */
.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sky-gradient {
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        radial-gradient(ellipse at 28% 74%, rgba(246, 250, 255, 0.45) 0%, rgba(246, 250, 255, 0) 52%),
        radial-gradient(ellipse at 72% 70%, rgba(244, 249, 255, 0.42) 0%, rgba(244, 249, 255, 0) 50%),
        linear-gradient(180deg, #4f83c0 0%, #78a4d6 38%, #adc8e6 68%, #dbe8f4 100%);
    transition: opacity 2600ms cubic-bezier(0.16, 0.74, 0.2, 1);
}

.cloud-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    overflow: hidden;
    perspective: 1280px;
    transform-style: preserve-3d;
    transition: opacity 2200ms ease;
}

.cloud-layer::before,
.cloud-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cloud-layer::before {
    background:
        radial-gradient(ellipse at 22% 70%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 54%),
        radial-gradient(ellipse at 78% 64%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 52%),
        radial-gradient(ellipse at 52% 82%, rgba(244, 250, 255, 0.14) 0%, rgba(244, 250, 255, 0) 58%);
    filter: blur(24px);
    opacity: 0.34;
}

.cloud-layer::after {
    background:
        radial-gradient(ellipse at 16% 26%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 46%),
        radial-gradient(ellipse at 84% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 48%),
        radial-gradient(ellipse at 50% 88%, rgba(244, 248, 255, 0.14) 0%, rgba(244, 248, 255, 0) 64%);
    filter: blur(14px);
    opacity: 0.22;
}

.cloud {
    position: absolute;
    display: block;
    left: 50%;
    top: 50%;
    width: clamp(280px, 34vw, 700px);
    height: clamp(132px, 16.5vw, 270px);
    border-radius: var(--cloud-radius, 58% 42% 52% 48% / 56% 44% 64% 36%);
    background:
        radial-gradient(ellipse 32% 52% at 10% 64%, rgba(255, 255, 255, 0.78) 0%, rgba(245, 251, 255, 0.34) 42%, rgba(235, 246, 255, 0) 88%),
        radial-gradient(ellipse 36% 58% at 24% 44%, rgba(255, 255, 255, 0.9) 0%, rgba(246, 252, 255, 0.42) 40%, rgba(235, 246, 255, 0) 86%),
        radial-gradient(ellipse 38% 62% at 44% 52%, rgba(255, 255, 255, 0.86) 0%, rgba(245, 251, 255, 0.38) 42%, rgba(236, 246, 255, 0) 88%),
        radial-gradient(ellipse 34% 56% at 62% 40%, rgba(255, 255, 255, 0.74) 0%, rgba(243, 250, 255, 0.32) 44%, rgba(236, 246, 255, 0) 90%),
        radial-gradient(ellipse 30% 52% at 80% 56%, rgba(255, 255, 255, 0.68) 0%, rgba(242, 249, 255, 0.24) 42%, rgba(236, 246, 255, 0) 90%),
        radial-gradient(ellipse 28% 46% at 92% 46%, rgba(255, 255, 255, 0.48) 0%, rgba(241, 249, 255, 0.16) 40%, rgba(236, 246, 255, 0) 88%);
    filter: blur(11px) saturate(1.02) contrast(1.05);
    opacity: 0;
    mix-blend-mode: screen;
    box-shadow:
        0 0 36px rgba(255, 255, 255, 0.2),
        0 18px 30px rgba(205, 224, 246, 0.1);
    transform: translate3d(-50%, -50%, -340px) rotate(var(--rot-start, -2deg)) scale(var(--start-scale, 0.2));
    will-change: transform, opacity, filter;
    transform-origin: center;
    overflow: visible;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.cloud::before {
    inset: -20% -12% -30% -16%;
    border-radius: var(--cloud-radius-b, 52% 48% 62% 38% / 44% 56% 42% 58%);
    background:
        radial-gradient(ellipse 30% 54% at 12% 62%, rgba(255, 255, 255, 0.44) 0%, rgba(245, 250, 255, 0.14) 42%, rgba(245, 250, 255, 0) 88%),
        radial-gradient(ellipse 34% 56% at 34% 36%, rgba(255, 255, 255, 0.38) 0%, rgba(245, 250, 255, 0.12) 40%, rgba(245, 250, 255, 0) 90%),
        radial-gradient(ellipse 32% 54% at 58% 56%, rgba(255, 255, 255, 0.34) 0%, rgba(245, 250, 255, 0.1) 40%, rgba(245, 250, 255, 0) 88%),
        radial-gradient(ellipse 28% 48% at 84% 42%, rgba(255, 255, 255, 0.3) 0%, rgba(245, 250, 255, 0.09) 38%, rgba(245, 250, 255, 0) 86%);
    filter: blur(13px);
    opacity: 0.74;
    transform: rotate(var(--puff-rot-a, -6deg));
}

.cloud::after {
    inset: -28% -16% -36% 4%;
    border-radius: var(--cloud-radius-c, 62% 38% 46% 54% / 58% 42% 56% 44%);
    background:
        radial-gradient(ellipse 66% 54% at 50% 60%, rgba(255, 255, 255, 0.24) 0%, rgba(244, 250, 255, 0.08) 42%, rgba(244, 250, 255, 0) 92%),
        radial-gradient(ellipse 26% 40% at 78% 34%, rgba(255, 255, 255, 0.2) 0%, rgba(244, 250, 255, 0.06) 40%, rgba(244, 250, 255, 0) 86%),
        radial-gradient(ellipse 24% 38% at 24% 72%, rgba(255, 255, 255, 0.14) 0%, rgba(244, 250, 255, 0.04) 40%, rgba(244, 250, 255, 0) 86%);
    filter: blur(17px);
    opacity: 0.58;
    transform: rotate(var(--puff-rot-b, 8deg));
}

.cloud.c1 { --spawn-x: -7vw; --spawn-y: 16vh; --dir-x: -52vw; --dir-y: -74vh; --start-scale: 0.2; --end-scale: 1.94; --dur: 64s; --delay: -9s; width: clamp(290px, 33vw, 620px); --rot-start: -7deg; --rot-end: 5deg; --puff-rot-a: -9deg; --puff-rot-b: 10deg; --cloud-radius: 62% 38% 48% 52% / 52% 48% 60% 40%; }
.cloud.c2 { --spawn-x: 6vw; --spawn-y: 14vh; --dir-x: 44vw; --dir-y: -70vh; --start-scale: 0.18; --end-scale: 1.86; --dur: 71s; --delay: -22s; width: clamp(330px, 38vw, 760px); --rot-start: 6deg; --rot-end: -6deg; --puff-rot-a: -4deg; --puff-rot-b: 14deg; --cloud-radius: 54% 46% 58% 42% / 60% 40% 50% 50%; }
.cloud.c3 { --spawn-x: -9vw; --spawn-y: 11vh; --dir-x: -62vw; --dir-y: -44vh; --start-scale: 0.17; --end-scale: 1.72; --dur: 79s; --delay: -35s; width: clamp(260px, 30vw, 560px); --rot-start: -5deg; --rot-end: 6deg; --puff-rot-a: -12deg; --puff-rot-b: 6deg; --cloud-radius: 48% 52% 42% 58% / 44% 56% 50% 50%; }
.cloud.c4 { --spawn-x: 8vw; --spawn-y: 10vh; --dir-x: 60vw; --dir-y: -40vh; --start-scale: 0.18; --end-scale: 1.68; --dur: 83s; --delay: -47s; width: clamp(300px, 34vw, 640px); --rot-start: 4deg; --rot-end: -5deg; --puff-rot-a: -8deg; --puff-rot-b: 12deg; --cloud-radius: 64% 36% 54% 46% / 48% 52% 58% 42%; }
.cloud.c5 { --spawn-x: -2vw; --spawn-y: 20vh; --dir-x: -18vw; --dir-y: -86vh; --start-scale: 0.22; --end-scale: 2.08; --dur: 58s; --delay: -14s; width: clamp(360px, 40vw, 820px); --rot-start: -8deg; --rot-end: 4deg; --puff-rot-a: -10deg; --puff-rot-b: 11deg; --cloud-radius: 58% 42% 64% 36% / 62% 38% 54% 46%; }
.cloud.c6 { --spawn-x: 3vw; --spawn-y: 22vh; --dir-x: 24vw; --dir-y: -90vh; --start-scale: 0.21; --end-scale: 2.12; --dur: 62s; --delay: -30s; width: clamp(340px, 37vw, 760px); --rot-start: 8deg; --rot-end: -4deg; --puff-rot-a: -5deg; --puff-rot-b: 13deg; --cloud-radius: 52% 48% 58% 42% / 46% 54% 44% 56%; }
.cloud.c7 { --spawn-x: -12vw; --spawn-y: 18vh; --dir-x: -30vw; --dir-y: -84vh; --start-scale: 0.19; --end-scale: 1.98; --dur: 76s; --delay: -42s; width: clamp(300px, 34vw, 700px); --rot-start: -6deg; --rot-end: 7deg; --puff-rot-a: -13deg; --puff-rot-b: 5deg; --cloud-radius: 60% 40% 56% 44% / 58% 42% 56% 44%; }
.cloud.c8 { --spawn-x: 11vw; --spawn-y: 12vh; --dir-x: 56vw; --dir-y: -52vh; --start-scale: 0.16; --end-scale: 1.76; --dur: 88s; --delay: -56s; width: clamp(280px, 31vw, 600px); --rot-start: 7deg; --rot-end: -7deg; --puff-rot-a: -7deg; --puff-rot-b: 15deg; --cloud-radius: 46% 54% 44% 56% / 52% 48% 62% 38%; }
.cloud {
    animation: cloud-radial-drift var(--dur) linear infinite;
    animation-delay: var(--delay);
}

.mode-toggle {
    position: fixed;
    top: clamp(12px, 2.5vh, 26px);
    right: clamp(12px, 3vw, 28px);
    z-index: 30;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(6, 8, 16, 0.62);
    color: rgba(255, 255, 255, 0.88);
    padding: 0.55rem 0.9rem;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 320ms var(--transition);
}

.mode-toggle:hover {
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(14, 18, 30, 0.72);
}

body.is-lightmode {
    background-color: #85b2df;
}

body.is-lightmode .sky-gradient {
    opacity: 1;
}

body.is-lightmode .cloud-layer {
    opacity: 1;
}

body.is-lightmode .cloud {
    opacity: 0.64;
}

body.is-lightmode .floating-domain {
    color: rgba(6, 26, 54, 0.54);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

body.is-lightmode .mode-toggle {
    border-color: rgba(13, 36, 65, 0.36);
    background: rgba(226, 240, 255, 0.78);
    color: rgba(8, 26, 52, 0.9);
}

@keyframes cloud-radial-drift {
    0% {
        transform: translate3d(calc(-50% + var(--spawn-x)), calc(-50% + var(--spawn-y)), -340px) rotate(var(--rot-start, 0deg)) scale(var(--start-scale));
        opacity: 0;
        filter: blur(6px) saturate(1);
    }
    12% {
        opacity: 0.28;
    }
    44% {
        opacity: 0.5;
    }
    70% {
        opacity: 0.68;
    }
    100% {
        transform: translate3d(calc(-50% + var(--dir-x)), calc(-50% + var(--dir-y)), 180px) rotate(var(--rot-end, 0deg)) scale(var(--end-scale));
        opacity: 0;
        filter: blur(18px) saturate(1.06);
    }
}

.content-wrapper {
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 0; /* Remove padding to touch the edges */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-domain {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    letter-spacing: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    animation: floating-data 4s infinite ease-in-out;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    pointer-events: none;
    z-index: 5;
}

@keyframes floating-data {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-15px); opacity: 0.7; }
}

.monolith-stage {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1200px;
    -webkit-perspective: 1200px;
    perspective-origin: 50% 88%;
}

#main-monolith {
    --hal-eye-size: 108px;
    --hal-ring-size: 108px;
    --hal-lens-size: 95px;
    --monolith-depth: 36px;
    --monolith-seam-fix: 0.55px;
    --monolith-ground-bleed: clamp(26px, 3.5vh, 46px);
    --monolith-sink: clamp(12px, 2vh, 22px);
    --flip-duration: 2400ms;
    --glitch-x: 0px;
    --glitch-y: 0px;
    --flip-step: 0;
    width: min(72vw, 420px);
    max-width: 420px;
    height: calc(min(86vh, 760px) + var(--monolith-ground-bleed));
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform-origin: bottom center;
    transform: translate(var(--glitch-x), calc(var(--glitch-y) + var(--monolith-sink))) rotateX(15deg) rotateY(calc(var(--flip-step) * -180deg));
    transition: transform var(--flip-duration) cubic-bezier(0.18, 0.72, 0.2, 1);
    z-index: 10;
    will-change: transform;
}

.monolith-card {
    background: var(--monolith-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.2rem 2.4rem 3.6rem;
    text-align: center;
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    border-radius: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, #040404 0%, #010101 30%, #020202 100%);
    box-shadow:
        0 45px 130px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        inset 0 48px 70px rgba(255, 255, 255, 0.015),
        inset 0 -90px 120px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.monolith-card--front {
    transform: translateZ(calc((var(--monolith-depth) / 2) + var(--monolith-seam-fix)));
}

.monolith-card--back {
    transform: rotateY(180deg) translateZ(calc((var(--monolith-depth) / 2) + var(--monolith-seam-fix)));
}

.monolith-side {
    position: absolute;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background:
        linear-gradient(180deg, rgba(25, 25, 25, 0.95) 0%, rgba(6, 6, 6, 0.98) 100%);
    box-shadow:
        inset 0 0 8px rgba(255, 255, 255, 0.06),
        0 0 12px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.monolith-side--left {
    top: -1px;
    left: 0;
    width: var(--monolith-depth);
    height: calc(100% + 2px);
    transform-origin: left center;
    transform: translateZ(calc((var(--monolith-depth) / -2) + var(--monolith-seam-fix))) rotateY(-90deg);
}

.monolith-side--right {
    top: -1px;
    right: 0;
    width: var(--monolith-depth);
    height: calc(100% + 2px);
    transform-origin: right center;
    transform: translateZ(calc((var(--monolith-depth) / -2) + var(--monolith-seam-fix))) rotateY(90deg);
}

.monolith-side--top {
    top: 0;
    left: -1px;
    width: calc(100% + 2px);
    height: var(--monolith-depth);
    transform-origin: center top;
    transform: translateZ(calc((var(--monolith-depth) / -2) + var(--monolith-seam-fix))) rotateX(90deg);
}

.monolith-side--bottom {
    bottom: 0;
    left: -1px;
    width: calc(100% + 2px);
    height: var(--monolith-depth);
    transform-origin: center bottom;
    transform: translateZ(calc((var(--monolith-depth) / -2) + var(--monolith-seam-fix))) rotateX(-90deg);
}

.monolith-card::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.015) 8%,
        transparent 24%,
        transparent 76%,
        rgba(255, 255, 255, 0.015) 92%,
        rgba(255, 255, 255, 0.05) 100%
    );
    opacity: 0.45;
}

.monolith-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    pointer-events: none;
}

#main-monolith .monolith-card--front h1 {
    letter-spacing: 0.42em;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    min-height: 5.8em;
    line-height: 1.45;
    align-items: flex-start;
    padding-top: 0.25rem;
}

#main-monolith .monolith-card--front .description {
    max-width: 320px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.66);
}

#main-monolith .status-line {
    color: rgba(255, 255, 255, 0.34);
    letter-spacing: 0.18em;
}

.monolith-card--imprint {
    text-align: left;
    justify-content: flex-start;
    gap: 0.95rem;
    padding: 2.4rem 1.7rem 3.6rem;
}

.monolith-card--imprint .description {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.monolith-card--imprint .status-line {
    text-align: left;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.24em;
    font-size: 0.66rem;
    margin-bottom: 0.25rem;
}

.imprint-title {
    position: relative;
    display: inline-block;
    text-align: left;
    margin-bottom: 0.5rem;
    min-height: auto;
    padding-top: 0;
    letter-spacing: 0.34em;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
}

.imprint-title::after {
    content: "";
    display: block;
    width: 82px;
    height: 1px;
    margin-top: 0.6rem;
    background: linear-gradient(90deg, rgba(255, 95, 95, 0.58) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.imprint-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.012) 100%);
    padding: 1rem 0.95rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 18px rgba(0, 0, 0, 0.26);
}

.imprint-panel--owner {
    border-left: 2px solid rgba(255, 90, 90, 0.38);
}

.imprint-panel--contact {
    border-left: 2px solid rgba(180, 210, 255, 0.34);
}

.imprint-label {
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 0.11rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 0.56rem;
}

.imprint-address {
    color: rgba(255, 255, 255, 0.93);
    margin-top: 0;
    padding-left: 0;
    line-height: 1.55;
    letter-spacing: 0.03em;
    font-size: 0.96rem;
    font-weight: 500;
}

.imprint-subtitle {
    margin: 0 0 0.8rem;
    font-size: 1.55rem;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

.imprint-contact-action {
    margin-top: 0;
}

.monolith-card--imprint .interface-button {
    width: 100%;
    display: block;
    padding: 0.95rem 1rem;
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.22em;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    transition: border-color 260ms var(--transition), background 260ms var(--transition), color 260ms var(--transition);
}

.monolith-card--imprint .interface-button:hover {
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.monolith-footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    padding-top: 0.8rem;
    padding-bottom: 0.65rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.35s var(--transition);
    text-align: center;
    z-index: 6;
}

.interaction-area {
    margin-bottom: 0.85rem;
}

.monolith-footer:hover {
    opacity: 1;
}

.monolith-footer a {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.7rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    opacity: 0.9;
    transition: opacity 0.35s var(--transition);
}

.monolith-footer a:hover {
    opacity: 1;
}

/* Boot Sequence */
#main-monolith.is-booting .interface-button,
#main-monolith.is-booting .monolith-footer a,
#main-monolith.is-booting #hal-eye {
    pointer-events: none;
    opacity: 0.22;
}

#main-monolith.is-booting .status-line {
    color: rgba(255, 140, 140, 0.66);
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.35);
    animation: boot-status-flicker 300ms steps(2, end) infinite;
}

#main-monolith.is-booting #main-headline {
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 0 14px rgba(255, 0, 0, 0.22);
}

#main-monolith.is-booting .hal-lens {
    animation: none;
    filter: brightness(0.3) saturate(0.45);
    transform: translate(-50%, -50%) scale(0.92);
    transition: transform 360ms ease, filter 360ms ease;
}

#main-monolith.is-booting .hal-eye::before {
    opacity: 0.68;
    filter: brightness(0.54) saturate(0.8) contrast(0.95);
}

#main-monolith.is-booting .hal-eye::after {
    opacity: 0.24;
    border-top-color: rgba(255, 255, 255, 0.24);
}

#main-monolith.is-booting .lens-flare {
    opacity: 0.08;
    transition: opacity 360ms ease;
}

#main-monolith.is-booting.boot-stage-1 .hal-lens {
    filter: brightness(0.58) saturate(0.72);
    transform: translate(-50%, -50%) scale(0.95);
}

#main-monolith.is-booting.boot-stage-1 .hal-eye::before {
    opacity: 0.74;
    filter: brightness(0.62) saturate(0.88) contrast(0.97);
}

#main-monolith.is-booting.boot-stage-1 .lens-flare {
    opacity: 0.14;
}

#main-monolith.is-booting.boot-stage-2 .hal-lens {
    filter: brightness(0.92) saturate(1.08);
    transform: translate(-50%, -50%) scale(0.99);
}

#main-monolith.is-booting.boot-stage-2 .hal-eye::before {
    opacity: 0.82;
    filter: brightness(0.74) saturate(0.96) contrast(1);
}

#main-monolith.is-booting.boot-stage-2 .lens-flare {
    opacity: 0.24;
}

#main-monolith.is-booting.boot-stage-3 .hal-lens {
    filter: brightness(1.14) saturate(1.2);
    transform: translate(-50%, -50%) scale(1.02);
}

#main-monolith.is-booting.boot-stage-3 .hal-eye::before {
    opacity: 0.9;
    filter: brightness(0.84) saturate(1.02) contrast(1.01);
}

#main-monolith.is-booting.boot-stage-3 .hal-eye::after {
    opacity: 0.42;
    border-top-color: rgba(255, 255, 255, 0.32);
}

#main-monolith.is-booting.boot-stage-3 .lens-flare {
    opacity: 0.4;
}

#main-monolith.boot-complete .status-line {
    text-shadow: 0 0 7px rgba(255, 30, 30, 0.12);
}

@keyframes boot-status-flicker {
    0%, 100% { opacity: 0.92; }
    50% { opacity: 0.62; }
}

@media (max-width: 768px) {
    /* Layout */
    body {
        height: 100svh;
        min-height: 100svh;
        justify-content: center;
        align-items: center;
    }

    .content-wrapper {
        position: fixed;
        left: 0;
        right: 0;
        bottom: max(8px, env(safe-area-inset-bottom));
        width: min(92vw, 430px);
        max-width: 430px;
        height: auto;
        min-height: 0;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
        z-index: 10;
    }

    .floating-domain {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        letter-spacing: 0.26rem;
        margin-bottom: 0.45rem;
        z-index: 5;
    }

    .mode-toggle {
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
        padding: 0.46rem 0.72rem;
        letter-spacing: 0.12rem;
    }

    .cloud {
        filter: blur(9px);
        width: clamp(220px, 58vw, 460px);
        height: clamp(108px, 26vw, 200px);
    }

    /* Stage and Card */
    .monolith-stage {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        perspective: 1100px;
        -webkit-perspective: 1100px;
        perspective-origin: 50% 86%;
    }

    .monolith-card {
        width: 100%;
        height: 100%;
        padding: 1.7rem 1.2rem 2rem;
    }

    #main-monolith {
        --hal-eye-size: 120px;
        --hal-ring-size: 100px;
        --hal-lens-size: 78px;
        --monolith-depth: 26px;
        --monolith-seam-fix: 0.45px;
        --monolith-ground-bleed: clamp(18px, 2.8vh, 34px);
        --monolith-sink: clamp(10px, 1.8vh, 18px);
        width: 100%;
        height: calc(min(72vh, 680px) + var(--monolith-ground-bleed));
        transform: translate(var(--glitch-x), calc(var(--glitch-y) + var(--monolith-sink))) rotateX(8deg) rotateY(calc(var(--flip-step) * -180deg));
    }

    #main-monolith .hal-container {
        margin-bottom: 1.35rem;
    }

    #main-monolith .hal-eye::after {
        top: 16%;
        width: 54%;
        border-top-width: 2px;
    }

    #main-monolith .lens-flare {
        width: 300%;
    }

    /* Typography */
    #main-monolith .monolith-card--front h1 {
        font-size: 0.92rem;
        letter-spacing: 0.24em;
        min-height: 5.2em;
    }

    #main-monolith .monolith-card--front .description {
        font-size: 0.72rem;
        line-height: 1.48;
    }

    .imprint-title {
        margin-bottom: 0.45rem;
        font-size: 1.02rem;
        letter-spacing: 0.26em;
    }

    .imprint-title::after {
        width: 64px;
        margin-top: 0.46rem;
    }

    .monolith-card--imprint {
        padding: 1.65rem 1.15rem 2rem;
        gap: 0.72rem;
    }

    .imprint-panel {
        padding: 0.76rem 0.72rem;
    }

    .imprint-label {
        font-size: 0.62rem;
        letter-spacing: 0.09rem;
    }

    .imprint-address {
        font-size: 0.86rem;
        line-height: 1.48;
    }

    .imprint-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.62rem;
    }

    .monolith-card--imprint .interface-button {
        padding: 0.82rem 0.85rem;
        font-size: 0.69rem;
        letter-spacing: 0.17em;
    }

    .monolith-footer {
        padding-top: 0.68rem;
        padding-bottom: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #main-monolith {
        --flip-duration: 0ms;
    }

    #main-monolith.is-booting .status-line {
        animation: none;
    }

    #main-monolith.is-booting .hal-lens,
    #main-monolith.is-booting .lens-flare {
        transition: none;
    }

    #main-monolith.is-booting .hal-eye::before,
    #main-monolith.is-booting .hal-eye::after {
        transition: none;
    }

    .sky-gradient,
    .cloud-layer {
        transition: none;
    }

    .cloud {
        animation: none;
    }

    .imprint-contact-drawer,
    #main-monolith.is-contact-open .monolith-card--imprint > :not(.imprint-contact-drawer),
    .drawer-close,
    .refresh-btn svg {
        transition: none;
    }
}

/* HAL 9000 Eye */
.hal-container {
    margin-bottom: 2.8rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    overflow: visible;
}

.hal-eye {
    width: var(--hal-eye-size, 108px);
    height: var(--hal-eye-size, 108px);
    border: 2px solid #0f1114;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 50% 58%, #090909 0%, #040404 70%, #010101 100%);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.12),
        inset 0 -12px 18px rgba(0, 0, 0, 0.82),
        0 2px 7px rgba(0, 0, 0, 0.36);
    cursor: pointer;
    transition: transform 0.3s var(--transition);
}

.hal-eye::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--hal-ring-size, 108px);
    height: var(--hal-ring-size, 108px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 6%, rgba(255, 255, 255, 0) 17%),
        radial-gradient(circle at 82% 84%, rgba(245, 250, 255, 0.5) 0%, rgba(245, 250, 255, 0.2) 5%, rgba(245, 250, 255, 0) 15%),
        conic-gradient(
            from 212deg,
            #ffffff 0deg,
            #d7dfe7 16deg,
            #7d8793 48deg,
            #f3f6fa 86deg,
            #a6b0bb 124deg,
            #ffffff 176deg,
            #8f99a4 226deg,
            #4b5460 274deg,
            #d9e0e8 322deg,
            #ffffff 360deg
        );
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.68),
        inset 0 -3px 6px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.32);
    -webkit-mask-image: radial-gradient(circle closest-side, transparent 80%, #000 84%, #000 98%, transparent 100%);
    mask-image: radial-gradient(circle closest-side, transparent 80%, #000 84%, #000 98%, transparent 100%);
    pointer-events: none;
    z-index: 3;
    transition: opacity 760ms cubic-bezier(0.2, 0.72, 0.22, 1), filter 760ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.hal-eye::after {
    content: "";
    position: absolute;
    top: 17%;
    left: 50%;
    width: 54%;
    height: 12%;
    transform: translateX(-50%);
    border-radius: 50%;
    border-top: 3px solid rgba(255, 255, 255, 0.42);
    opacity: 0.68;
    filter: blur(0.2px);
    pointer-events: none;
    z-index: 4;
    transition: opacity 760ms cubic-bezier(0.2, 0.72, 0.22, 1), border-top-color 760ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.hal-lens {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--hal-lens-size, 95px);
    height: var(--hal-lens-size, 95px);
    background: radial-gradient(circle at 50% 50%, #ffd45e 0%, #ffaf00 7%, #ff4000 22%, rgba(226, 0, 0, 0.96) 38%, rgba(145, 0, 0, 0.88) 50%, rgba(64, 0, 0, 0.8) 62%, rgba(20, 0, 0, 0.66) 74%, rgba(0, 0, 0, 0.36) 88%, rgba(0, 0, 0, 0) 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 17px rgba(0, 0, 0, 0.5),
        inset 0 0 48px rgba(0, 0, 0, 0.9),
        inset 0 -12px 18px rgba(0, 0, 0, 0.62);
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: hal-pulse 4s infinite alternate ease-in-out, flicker 4s infinite alternate ease-in-out;
    z-index: 2;
}

.hal-lens::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    width: 36%;
    height: 10%;
    transform: translateX(-50%);
    border-radius: 50%;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.65;
    filter: blur(0.2px);
    pointer-events: none;
}

@keyframes hal-pulse {
    0% { 
        filter: brightness(0.92) saturate(1);
    }
    100% { 
        filter: brightness(1.08) saturate(1.08);
    }
}

.hal-eye.active .hal-lens {
    transform: translate(-50%, -50%) scale(1.06);
    filter: brightness(1.14) saturate(1.1);
}

/* Cinematic Lens Flare System */
.lens-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260%;
    height: 120px;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
    opacity: 0.42;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: flare-drift 7s infinite ease-in-out;
}

.flare-streak {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 120, 120, 0.4) 48%,
        rgba(255, 120, 120, 0.65) 50%,
        rgba(255, 120, 120, 0.4) 52%,
        rgba(255, 255, 255, 0) 80%,
        transparent 100%);
    box-shadow:
        0 0 8px rgba(255, 120, 120, 0.55),
        0 0 34px rgba(255, 255, 255, 0.12);
    opacity: 0.9;
}

@keyframes flare-drift {
    0% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.34; }
    50% { transform: translate(-49%, -50%) scale(1.02); opacity: 0.55; }
    100% { transform: translate(-50%, -50%) scale(0.99); opacity: 0.38; }
}

/* Typography */
h1 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    opacity: 0.9;
    min-height: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}

.glitch-text {
    animation: headline-glitch 0.5s steps(2, end);
}

@keyframes headline-glitch {
    0% {
        transform: translate(0, 0);
        text-shadow: 0 0 0 transparent;
    }
    25% {
        transform: translate(-1px, 1px);
        text-shadow: -2px 0 rgba(255, 0, 0, 0.6), 2px 0 rgba(165, 243, 252, 0.4);
    }
    50% {
        transform: translate(1px, -1px);
        text-shadow: 2px 0 rgba(255, 0, 0, 0.6), -2px 0 rgba(165, 243, 252, 0.4);
    }
    100% {
        transform: translate(0, 0);
        text-shadow: 0 0 0 transparent;
    }
}

.description {
    font-size: 0.85rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.status-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.interface-button {
    background: transparent;
    border: 1px solid var(--interface-border);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.4s var(--transition);
}

.interface-button:hover {
    background: var(--text-white);
    color: var(--bg-space);
}

.button-full {
    width: 100%;
}

/* Contact Drawer */
.imprint-contact-drawer {
    position: absolute;
    inset: 0;
    z-index: 16;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(12, 12, 12, 0.97) 0%, rgba(3, 3, 3, 0.985) 100%);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 1.05rem 0.95rem 0.85rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(102%);
    opacity: 0;
    pointer-events: none;
    transition: transform 1280ms cubic-bezier(0.08, 0.74, 0.14, 1), opacity 760ms ease;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
}

.imprint-contact-drawer::before {
    content: "";
    position: absolute;
    top: 0.38rem;
    left: 50%;
    width: 58px;
    height: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.24);
}

#main-monolith.is-contact-open .imprint-contact-drawer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#main-monolith.is-contact-open .monolith-card--imprint > :not(.imprint-contact-drawer) {
    opacity: 0.2;
    filter: blur(1px);
    pointer-events: none;
    transition: opacity 760ms ease, filter 760ms ease;
}

.drawer-title {
    margin: 0.55rem 0 0.8rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.84rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 68, 68, 0.95);
}

.imprint-contact-drawer #contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-right: 0.08rem;
}

.imprint-contact-drawer .form-group {
    margin-bottom: 0.74rem;
}

.imprint-contact-drawer .form-group label {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.19em;
    margin-bottom: 0.36rem;
    color: rgba(188, 198, 214, 0.72);
}

.imprint-contact-drawer input,
.imprint-contact-drawer textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.94);
    padding: 0.64rem 0.72rem;
    font-family: inherit;
    font-size: 0.84rem;
    line-height: 1.25;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.imprint-contact-drawer textarea {
    min-height: 5rem;
    max-height: 9rem;
    resize: vertical;
}

.imprint-contact-drawer input::placeholder,
.imprint-contact-drawer textarea::placeholder {
    color: rgba(193, 202, 218, 0.54);
}

.imprint-contact-drawer input:focus,
.imprint-contact-drawer textarea:focus {
    outline: none;
    border-color: rgba(255, 88, 88, 0.66);
    box-shadow:
        0 0 0 1px rgba(255, 80, 80, 0.34),
        0 0 0 3px rgba(255, 80, 80, 0.08);
}

.captcha-row {
    display: grid;
    grid-template-columns: 48px minmax(110px, 1fr) 78px;
    grid-template-areas: "refresh image answer";
    align-items: center;
    gap: 0.45rem;
    width: 100%;
}

.captcha-row .refresh-btn {
    grid-area: refresh;
}

.captcha-row .captcha-image {
    grid-area: image;
}

.captcha-row input {
    grid-area: answer;
}

.captcha-image {
    height: 48px;
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: block;
    object-fit: cover;
    image-rendering: pixelated;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(208, 218, 234, 0.78);
    height: 48px;
    width: 48px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.24s ease;
    padding: 0;
}

.refresh-btn:hover {
    color: rgba(255, 124, 124, 0.96);
    border-color: rgba(255, 112, 112, 0.62);
    background: rgba(255, 56, 56, 0.08);
}

.refresh-btn:hover svg {
    transform: rotate(180deg);
}

.refresh-btn svg {
    transition: transform 0.4s var(--transition);
}

.captcha-row input {
    height: 48px;
    text-align: center;
    min-width: 0;
}

.captcha-row input[type="number"]::-webkit-outer-spin-button,
.captcha-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-row input[type="number"] {
    -moz-appearance: textfield;
}

#submit-btn {
    margin-top: 0.2rem;
    border-color: rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.76rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

#submit-btn:disabled {
    opacity: 0.62;
    cursor: wait;
}

.status-msg {
    display: none;
    margin-top: 0.6rem;
    min-height: 1rem;
    font-size: 0.64rem;
    color: rgba(201, 211, 230, 0.86);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

.drawer-close {
    position: sticky;
    bottom: 0;
    margin-top: 0.72rem;
    padding: 0.66rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(8, 10, 16, 0.92);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: rgba(236, 242, 255, 0.9);
    cursor: pointer;
    letter-spacing: 0.17em;
    text-align: center;
    width: 100%;
    z-index: 2;
    box-shadow:
        0 -10px 24px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: color 200ms ease, opacity 200ms ease;
}

.drawer-close:hover {
    color: #ffffff;
    border-color: rgba(255, 130, 130, 0.62);
    background: rgba(24, 10, 10, 0.96);
}

@media (max-width: 640px) {
    .imprint-contact-drawer {
        inset: 0;
        padding: 0.86rem 0.72rem 0.7rem;
    }

    .drawer-title {
        font-size: 0.74rem;
        letter-spacing: 0.2em;
    }

    .imprint-contact-drawer .form-group {
        margin-bottom: 0.64rem;
    }

    .captcha-row {
        grid-template-columns: 44px minmax(96px, 1fr) 70px;
        gap: 0.4rem;
    }

    .captcha-image,
    .refresh-btn,
    .captcha-row input {
        height: 44px;
    }

    .refresh-btn {
        width: 44px;
    }
}

/* Animations */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
