:root {
    color-scheme: dark;
    --bg: #080a10;
    --panel: rgba(10, 12, 19, 0.78);
    --panel-soft: rgba(14, 17, 27, 0.58);
    --line: rgba(222, 226, 242, 0.18);
    --line-strong: rgba(222, 226, 242, 0.34);
    --trim-line: rgba(222, 226, 242, 0.34);
    --button-violet-line: rgba(199, 169, 255, 0.58);
    --button-cyan-line: rgba(56, 214, 221, 0.72);
    --text: #f3f4fb;
    --muted: #9498ad;
    --violet: #9d5cff;
    --violet-soft: #c7a9ff;
    --cyan: #38d6dd;
    --max-spine: 690px;
    --cut-sm: 8px;
    --cut-md: 14px;
    --cut-lg: 18px;
    --cut-sm-diagonal: 12px;
    --cut-md-diagonal: 20px;
    --cut-lg-diagonal: 26px;
    --notch-md: 36px;
    --clip-se-sm: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
    --clip-se-md: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-md)), calc(100% - var(--cut-md)) 100%, 0 100%);
    --clip-cut-md: polygon(var(--cut-md) 0, 100% 0, 100% calc(100% - var(--cut-md)), calc(100% - var(--cut-md)) 100%, 0 100%, 0 var(--cut-md));
    --clip-cut-lg: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg));
    --clip-notch-lg: polygon(0 0, var(--notch-md) 0, calc(var(--notch-md) + 5px) 4px, 100% 4px, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%);
    --font-display: "Stormrage Font1", "Segoe UI", Arial, sans-serif;
    --font-body: "Stormrage Font2", "Segoe UI", "Inter", Arial, sans-serif;
    --weight-body: 500;
    --weight-ui: 500;
    --weight-strong: 600;
    --weight-display: 400;
    font-family: var(--font-body);
    font-weight: var(--weight-body);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    font-size: 18px;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background: linear-gradient(180deg, #0a0d15 0%, #080a10 62%, #05060a 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(157, 92, 255, 0.16), transparent 26rem),
        radial-gradient(circle at 86% 42%, rgba(56, 214, 221, 0.09), transparent 24rem);
    animation: nebula-pulse 8s ease-in-out infinite alternate;
}

@keyframes nebula-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.75; }
}

a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.starmap {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.82;
}

.route {
    fill: none;
    stroke: rgba(218, 224, 244, 0.2);
    stroke-width: 1;
    stroke-dasharray: 3 9;
}

.route-primary {
    stroke: rgba(157, 92, 255, 0.58);
    stroke-width: 1.3;
}

.route-secondary {
    stroke: rgba(56, 214, 221, 0.44);
    stroke-width: 1.1;
}

.orbit {
    fill: none;
    stroke: rgba(228, 232, 247, 0.11);
}

.map-node {
    fill: #080a12;
    stroke: rgba(228, 232, 247, 0.42);
    stroke-width: 1.4;
}

.node-violet {
    fill: var(--violet);
    stroke: rgba(229, 216, 255, 0.95);
    filter: drop-shadow(0 0 8px rgba(157, 92, 255, 0.72));
}

.node-cyan {
    fill: var(--cyan);
    stroke: rgba(207, 255, 255, 0.95);
    filter: drop-shadow(0 0 7px rgba(56, 214, 221, 0.52));
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(100%, var(--max-spine));
    margin: 0 auto;
    padding: 26px 18px 48px;
}

.site-header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.brand-lockup {
    display: flex;
    justify-content: center;
    padding: 6px 0 2px;
}

.brand-logo {
    display: block;
    width: min(540px, 90vw);
    max-height: 154px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(157, 92, 255, 0.4));
    animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% { filter: drop-shadow(0 0 14px rgba(157, 92, 255, 0.25)); }
    100% { filter: drop-shadow(0 0 32px rgba(157, 92, 255, 0.55)); }
}

.main-nav {
    display: flex;
    flex-wrap: nowrap;
    min-height: 46px;
    align-items: center;
    border-block: 1px solid var(--line);
    background: linear-gradient(90deg, transparent, rgba(9, 11, 18, 0.74), transparent);
}

.main-nav a {
    position: relative;
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px clamp(4px, 0.8vw, 10px);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: var(--weight-display);
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.main-nav a:first-child {
    border-left: none;
}

.main-nav a:last-child {
    border-right: none;
}

.main-nav a:hover {
    color: var(--violet-soft);
    text-shadow: 0 0 12px rgba(157, 92, 255, 0.5);
}

.main-nav a.is-active:hover {
    color: var(--text);
    text-shadow: 0 0 14px rgba(157, 92, 255, 0.6);
}

.main-nav a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    background: rgba(199, 169, 255, 0.34);
    transform: translateY(-50%);
}

.main-nav a.is-active {
    color: var(--text);
}

.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet), transparent);
    box-shadow: 0 0 10px rgba(157, 92, 255, 0.78);
}

.main-nav .nav-logo-link {
    display: inline-grid;
    place-items: center;
    width: 52px;
    min-height: 46px;
    padding-inline: 10px;
}

.main-nav .nav-logo-link-wide {
    width: 86px;
}

.main-nav .nav-logo-link img {
    display: block;
    max-width: 100%;
    height: 26px;
    object-fit: contain;
    filter: grayscale(0.15) drop-shadow(0 0 8px rgba(157, 92, 255, 0.18));
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.main-nav .nav-logo-link:hover img,
.main-nav .nav-logo-link:focus-visible img {
    filter: grayscale(0) drop-shadow(0 0 12px rgba(157, 92, 255, 0.52));
}

.external-icon {
    display: inline-block;
    margin-left: 3px;
    font-size: 0.72em;
    opacity: 0.55;
    vertical-align: middle;
    line-height: 1;
}

.content-spine {
    display: grid;
    gap: 22px;
    justify-items: stretch;
}

.hero-panel,
.terminal-section,
.page-intro,
.site-footer {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
    clip-path: var(--clip-notch-lg);
}

.hero-panel::after,
.terminal-section::after,
.page-intro::after,
.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(157, 92, 255, 0.34), rgba(56, 214, 221, 0.46)) calc(var(--notch-md) + 5px) 4px / calc(100% - var(--notch-md) - 24px) 1px no-repeat;
    pointer-events: none;
}

.hero-panel::before,
.terminal-section::before,
.page-intro::before,
.site-footer::before {
    content: "";
    position: absolute;
    right: -4px;
    bottom: 9px;
    width: var(--cut-lg-diagonal);
    height: 1px;
    background: var(--trim-line);
    pointer-events: none;
    transform: rotate(-45deg);
    transform-origin: center;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.86fr) 1fr;
    align-items: center;
    gap: clamp(18px, 4vw, 34px);
    padding: clamp(18px, 3vw, 30px);
    border-color: var(--line);
    background: var(--panel);
}

.release-art {
    aspect-ratio: 1;
    border: 1px solid rgba(231, 234, 242, 0.28);
    background:
        radial-gradient(circle at center, rgba(157, 92, 255, 0.92) 0 4%, rgba(157, 92, 255, 0.18) 5% 18%, transparent 19%),
        repeating-radial-gradient(circle at center, rgba(231, 234, 242, 0.18) 0 1px, transparent 1px 18px),
        linear-gradient(135deg, rgba(157, 92, 255, 0.14), rgba(56, 214, 221, 0.05)),
        #0b0e16;
    position: relative;
}

.release-art::after {
    content: "";
    position: absolute;
    top: 16%;
    right: -42px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 1px solid rgba(231, 234, 242, 0.22);
    background: radial-gradient(circle, rgba(157, 92, 255, 0.7) 0 8%, #05060a 9% 22%, rgba(255, 255, 255, 0.14) 23% 24%, #05060a 25%);
    z-index: -1;
}

.eyebrow,
.entry-date,
.section-head span,
.release-meta {
    color: var(--violet-soft);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: var(--weight-display);
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    margin-top: 12px;
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: clamp(2rem, 9vw, 4.25rem);
    line-height: 0.88;
    text-transform: uppercase;
}

h2,
h3 {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    text-transform: uppercase;
}

p {
    color: var(--muted);
    font-weight: var(--weight-body);
    line-height: 1.65;
}

.hero-copy p,
.page-intro p {
    margin-top: 16px;
}
