/* =============================================================
   MAIN CSS
   ============================================================= */

/* -------------------------------------------------------------
   0. REGISTERED CUSTOM PROPERTIES (animatable)
   ------------------------------------------------------------- */
@property --ang {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --pulse {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

/* -------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
    /* Void + panel tones */
    --crt-bg-void:      #01030c;
    --crt-bg-deep:      #020714;
    --crt-bg:           #04102a;
    --crt-bg-soft:      #061530;
    --crt-panel:        #082040;
    --crt-panel-raised: #0a2850;
    --crt-bezel:        #050a12;
    --crt-bezel-light:  #1a2030;

    /* Phosphor cyan family — matched to the banner */
    --crt-cyan:         #4DE0FF;
    --crt-cyan-bright:  #CDF4FF;
    --crt-cyan-mid:     #56b8d8;
    --crt-cyan-dim:     #2a7898;
    --crt-cyan-deep:    #0f4868;
    --crt-cyan-ghost:   rgba(77, 224, 255, 0.18);

    /* Secondary nebula accents */
    --crt-violet:       #8b5cf6;
    --crt-magenta:      #ff4ddb;

    /* Status colours */
    --crt-amber:        #FFB000;
    --crt-amber-glow:   rgba(255, 176, 0, 0.55);
    --crt-red:          #ff4d6d;
    --crt-red-glow:     rgba(255, 77, 109, 0.6);
    --crt-green:        #4dff9a;
    --crt-green-glow:   rgba(77, 255, 154, 0.55);

    /* Glow */
    --crt-glow:         rgba(77, 224, 255, 0.65);
    --crt-glow-soft:    rgba(77, 224, 255, 0.25);
    --crt-glow-strong:  rgba(205, 244, 255, 0.85);

    /* Panel surfaces (translucent glass over the starfield) */
    --panel-glass:      linear-gradient(165deg, rgba(10, 32, 64, 0.66), rgba(3, 10, 26, 0.72));
    --panel-glass-deep: linear-gradient(165deg, rgba(6, 20, 44, 0.82), rgba(2, 7, 18, 0.88));
    --panel-border:     color-mix(in srgb, var(--crt-cyan) 28%, transparent);
    --panel-border-dim: color-mix(in srgb, var(--crt-cyan) 16%, transparent);

    /* Legacy names kept for compatibility */
    --primary-color:    var(--crt-cyan);
    --background-color: var(--crt-bg);
    --secondary-bg:     var(--crt-panel);
    --text-color:       var(--crt-cyan-bright);
    --secondary-text:   var(--crt-cyan-mid);
    --border-color:     var(--crt-cyan);
    --border-light:     var(--crt-cyan-dim);
    --focus-color:      var(--crt-amber);
    --primary-hover:    var(--crt-cyan-bright);
    --link-color:       var(--crt-cyan);
    --tool-preview-aspect-ratio: 16/9;

    /* Holographic duotone for images; full colour is revealed on hover */
    --crt-img-duotone:
        grayscale(1)
        sepia(1)
        hue-rotate(165deg)
        saturate(2.6)
        brightness(0.95)
        contrast(1.05);

    /* Typography */
    --font-display: 'Orbitron', 'Share Tech Mono', 'Courier New', monospace;
    --font-mono: 'Share Tech Mono', 'VT323', 'IBM Plex Mono', 'JetBrains Mono',
                 'Courier New', Consolas, Menlo, ui-monospace, monospace;
    --font-sans-fallback: var(--font-mono);
    --line-height-normal: 1.6;
    --font-weight-normal: 400;
    --font-weight-bold:   700;

    /* Fluid type scale */
    --fs-body: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
    --fs-h1:   clamp(1.5rem, 1.1rem + 2.1vw, 2.5rem);
    --fs-h2:   clamp(1.1rem, 0.98rem + 0.8vw, 1.45rem);
    --fs-h3:   clamp(0.98rem, 0.92rem + 0.45vw, 1.18rem);

    /* Panel corner cut */
    --cut: 14px;
}

/* -------------------------------------------------------------
   2. VIEW TRANSITIONS — smooth cross-page navigation (MPA)
   ------------------------------------------------------------- */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: vt-out 0.22s ease both;
}

::view-transition-new(root) {
    animation: vt-in 0.3s ease both;
}

@keyframes vt-out {
    to { opacity: 0; filter: brightness(1.6) saturate(0.4); }
}

@keyframes vt-in {
    from { opacity: 0; filter: brightness(1.8) saturate(0.2); transform: scale(1.004); }
    to   { opacity: 1; filter: none; transform: none; }
}

/* -------------------------------------------------------------
   3. BASE / RESET
   ------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color: var(--crt-cyan-bright);
    overflow-y: scroll;
    font-size: 16px;
    /* Deep-space nebula — sits behind the starfield canvas */
    background:
        radial-gradient(900px 620px at 85% -10%, rgba(139, 92, 246, 0.12), transparent 62%),
        radial-gradient(760px 540px at -12% 18%, rgba(77, 224, 255, 0.09), transparent 60%),
        radial-gradient(1100px 760px at 50% 115%, rgba(255, 77, 219, 0.06), transparent 65%),
        var(--crt-bg-void);
}

body {
    font-family: var(--font-mono);
    line-height: var(--line-height-normal);
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--crt-cyan-bright);
    font-weight: var(--font-weight-normal);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-size: var(--fs-body);
    letter-spacing: 0.3px;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Starfield canvas (injected by crt-scroll.js) */
#starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* -------------------------------------------------------------
   4. CRT OVERLAYS — scanlines, vignette, beam, progress
   ------------------------------------------------------------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 2px,
            rgba(0, 0, 0, 0.30) 2px,
            rgba(0, 0, 0, 0.30) 3px
        );
    mix-blend-mode: multiply;
    opacity: 0.45;
    will-change: transform;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background:
        radial-gradient(ellipse at center,
            transparent 55%,
            rgba(1, 3, 12, 0.5) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.85  0 0 0 0 1  0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.8;
    animation: crt-flicker 9s infinite steps(1);
}

/* De rollende CRT-band: hoogte, intensiteit, snelheid en type worden
   per sweep willekeurig bepaald door crt-scroll.js (Web Animations API),
   zodat hij onregelmatig en geloofwaardig blijft. */
.crt-beam {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    transform: translateY(-100%);
    will-change: transform;
}

/* Scroll progress beam along the top edge */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 10001;
    pointer-events: none;
    background: linear-gradient(90deg, var(--crt-cyan), var(--crt-amber));
    box-shadow: 0 0 8px var(--crt-glow);
    transform: scaleX(var(--scroll-p, 0));
    transform-origin: 0 0;
}

@keyframes crt-flicker {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 0.84; }
    52%      { opacity: 0.72; }
    54%      { opacity: 0.8; }
}

@keyframes crt-cursor-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes led-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* -------------------------------------------------------------
   5. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--crt-cyan-bright);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    margin-bottom: 1.4rem;
    padding: 0.2rem 0 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--crt-cyan-bright) 35%, var(--crt-cyan) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--crt-cyan);
    filter:
        drop-shadow(0 0 12px rgba(77, 224, 255, 0.45))
        drop-shadow(0 0 36px rgba(77, 224, 255, 0.18));
    border-bottom: 1px solid var(--panel-border-dim);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: clamp(80px, 22%, 220px);
    height: 2px;
    background: linear-gradient(90deg, var(--crt-amber), transparent);
    box-shadow: 0 0 10px var(--crt-amber-glow);
}

h2 {
    font-size: var(--fs-h2);
    margin-bottom: 1.2rem;
    color: var(--crt-cyan);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-shadow:
        0 0 6px var(--crt-glow-soft),
        0 0 18px var(--crt-glow-soft);
}

h2::before {
    content: '◢';
    flex: 0 0 auto;
    color: var(--crt-amber);
    font-size: 0.7em;
    text-shadow: 0 0 8px var(--crt-amber-glow);
}

h2::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    min-width: 24px;
    background: linear-gradient(90deg,
        var(--crt-cyan-dim) 0%,
        color-mix(in srgb, var(--crt-cyan-dim) 35%, transparent) 60%,
        transparent 100%);
    box-shadow: 0 0 6px var(--crt-glow-soft);
}

h3 {
    font-size: var(--fs-h3);
    margin-bottom: 0.8rem;
    color: var(--crt-cyan-bright);
    text-shadow: 0 0 6px var(--crt-glow-soft);
}

h3::before {
    content: '▸ ';
    color: var(--crt-amber);
    text-shadow: 0 0 5px var(--crt-amber-glow);
}

p {
    color: var(--crt-cyan-bright);
    margin-bottom: 1.2rem;
    text-shadow: 0 0 2px var(--crt-glow-soft);
}

strong, b {
    color: #ffffff;
    font-weight: 700;
    text-shadow:
        0 0 4px var(--crt-glow),
        0 0 12px var(--crt-glow-soft);
}

small {
    color: var(--crt-cyan-mid);
    font-size: 0.85em;
}

ul, ol {
    color: var(--crt-cyan-bright);
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.4rem;
    text-shadow: 0 0 2px var(--crt-glow-soft);
}

ul li::marker {
    content: '▸ ';
    color: var(--crt-amber);
}

::selection {
    background: var(--crt-cyan);
    color: var(--crt-bg-void);
    text-shadow: none;
}

::-webkit-scrollbar { width: 11px; background: var(--crt-bg-void); }
::-webkit-scrollbar-track {
    background: var(--crt-bg-void);
    border-left: 1px solid var(--crt-cyan-deep);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--crt-cyan-deep), var(--crt-cyan-dim));
    border: 2px solid var(--crt-bg-void);
}
::-webkit-scrollbar-thumb:hover { background: var(--crt-cyan-dim); }

* { scrollbar-color: var(--crt-cyan-deep) var(--crt-bg-void); scrollbar-width: thin; }

/* -------------------------------------------------------------
   6. LINKS
   ------------------------------------------------------------- */
a {
    color: var(--crt-cyan);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed var(--crt-cyan-dim);
    transition: color 0.2s, border-color 0.2s, text-shadow 0.2s, background 0.2s;
    text-shadow: 0 0 4px var(--crt-glow-soft);
}

a:hover,
a:focus {
    color: var(--crt-amber);
    border-bottom-color: var(--crt-amber);
    border-bottom-style: solid;
    text-shadow:
        0 0 4px var(--crt-amber-glow),
        0 0 10px var(--crt-amber-glow);
    background: rgba(255, 176, 0, 0.08);
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--crt-amber);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: var(--crt-bg-deep);
    color: var(--crt-amber);
    border: 1px solid var(--crt-amber);
    z-index: 99999;
    font-weight: 700;
    text-shadow: 0 0 6px var(--crt-amber-glow);
}

/* -------------------------------------------------------------
   7. LAYOUT
   ------------------------------------------------------------- */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem clamp(0.9rem, 3vw, 2rem) 3rem;
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    margin-top: 1.6rem;
    /* Eigen stacking-laag onder de header zodat dropdowns en
       composited section-animaties elkaar nooit kruisen */
    z-index: 1;
}

#header-container {
    position: relative;
    z-index: 100;
}

#footer-container {
    position: relative;
    z-index: 1;
}

/* Homepage SEO h1 stays visually hidden; sub-page h1 becomes the hero title */
main > h1:first-child {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    border: none;
    filter: none;
}

/* -------------------------------------------------------------
   8. HEADER — holographic console chrome
   ------------------------------------------------------------- */
header[role="banner"] {
    position: relative;
    margin: 0 0 2rem 0;
    padding: 0;
    background: var(--panel-glass-deep);
    border: 1px solid var(--panel-border);
    overflow: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 0 0 1px rgba(77, 224, 255, 0.06),
        0 0 28px rgba(77, 224, 255, 0.12),
        0 0 90px rgba(77, 224, 255, 0.05);
    z-index: 500;
    /* HUD corner brackets */
    background-image:
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        var(--panel-glass-deep);
    background-size:
        26px 2px, 2px 26px,
        26px 2px, 2px 26px,
        26px 2px, 2px 26px,
        26px 2px, 2px 26px,
        100% 100%;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    background-repeat: no-repeat;
}

.crt-banner {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    background: var(--crt-bg-void);
    overflow: hidden;
}

.crt-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 78%,
        rgba(0,0,0,0.55) 100%);
            mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 78%,
        rgba(0,0,0,0.55) 100%);
}

/* RGB-split glitch layers over the banner (fires periodically) */
.crt-banner::before,
.crt-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url('../images/lloydstellar-banner-homepage.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    mix-blend-mode: screen;
}

.crt-banner::before {
    filter: hue-rotate(90deg) saturate(3);
    animation: banner-glitch-a 9s infinite steps(1);
}

.crt-banner::after {
    filter: hue-rotate(-60deg) saturate(3);
    animation: banner-glitch-b 9s infinite steps(1);
    animation-delay: 0.05s;
}

@keyframes banner-glitch-a {
    0%, 90%, 100% { opacity: 0; }
    91% { opacity: 0.5; clip-path: inset(8% 0 76% 0); transform: translateX(-7px); }
    93% { opacity: 0.4; clip-path: inset(62% 0 16% 0); transform: translateX(5px); }
    95% { opacity: 0; }
}

@keyframes banner-glitch-b {
    0%, 90%, 100% { opacity: 0; }
    92% { opacity: 0.45; clip-path: inset(38% 0 42% 0); transform: translateX(6px); }
    94% { opacity: 0.35; clip-path: inset(80% 0 4% 0); transform: translateX(-4px); }
    96% { opacity: 0; }
}

.site-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Typewriter tagline */
.header-tagline {
    margin: 0;
    color: var(--crt-cyan-mid);
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-align: center;
    padding: 0.55rem 1rem 0.4rem;
    text-transform: uppercase;
    background: rgba(2, 7, 20, 0.6);
    text-shadow: 0 0 6px var(--crt-glow-soft);
    min-height: 2.1em;
    border-bottom: 1px solid var(--panel-border-dim);
}

.tagline-cursor {
    color: var(--crt-amber);
    animation: crt-cursor-blink 1s infinite;
    margin-left: 2px;
}

/* Status bar */
.crt-statusbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 1.4rem;
    padding: 0.5rem 1rem;
    background: rgba(2, 7, 20, 0.7);
    color: var(--crt-cyan-mid);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--panel-border-dim);
}

.crt-statusbar .sb-item { white-space: nowrap; }

.crt-statusbar .led {
    color: var(--crt-green);
    text-shadow: 0 0 6px var(--crt-green-glow), 0 0 12px var(--crt-green-glow);
    animation: led-pulse 2.4s infinite;
}

.crt-statusbar .led.amber {
    color: var(--crt-amber);
    text-shadow: 0 0 6px var(--crt-amber-glow), 0 0 12px var(--crt-amber-glow);
    animation-delay: 1.2s;
}

.crt-status .led {
    color: var(--crt-green);
    text-shadow: 0 0 6px var(--crt-green-glow), 0 0 12px var(--crt-green-glow);
    animation: led-pulse 2.4s infinite;
}

.crt-status .led.red {
    color: var(--crt-red);
    text-shadow: 0 0 6px var(--crt-red-glow), 0 0 12px var(--crt-red-glow);
    animation: led-pulse 2.4s infinite;
}

#hud-clock {
    color: var(--crt-cyan);
    text-shadow: 0 0 5px var(--crt-glow-soft);
    font-variant-numeric: tabular-nums;
}

.sb-term-btn {
    appearance: none;
    background: rgba(77, 224, 255, 0.06);
    border: 1px solid var(--crt-cyan-dim);
    color: var(--crt-cyan);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-shadow: 0 0 4px var(--crt-glow-soft);
    animation: term-btn-pulse 2.6s ease-in-out infinite;
}

.sb-term-btn::before {
    content: '\25CF';
    color: var(--crt-amber);
    text-shadow: 0 0 6px var(--crt-amber-glow);
    margin-right: 0.5em;
    font-size: 0.8em;
    animation: led-pulse 1.3s steps(2, jump-none) infinite;
}

@keyframes term-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(77, 224, 255, 0); }
    50% { box-shadow: 0 0 14px rgba(77, 224, 255, 0.45); }
}

.sb-term-btn:hover,
.sb-term-btn:focus {
    background: var(--crt-cyan);
    color: var(--crt-bg-void);
    text-shadow: none;
    box-shadow: 0 0 12px var(--crt-glow);
    outline: none;
    animation: none;
}

.sb-term-btn:hover::before,
.sb-term-btn:focus::before {
    color: var(--crt-bg-void);
    text-shadow: none;
    animation: none;
}

/* one-time hint after the boot sequence */
.term-hint {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 9500;
    appearance: none;
    background: rgba(2, 8, 22, 0.94);
    border: 1px solid var(--crt-cyan);
    color: var(--crt-cyan-bright);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    padding: 0.7rem 1.3rem;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(77, 224, 255, 0.35), inset 0 0 14px rgba(77, 224, 255, 0.08);
    animation: term-hint-in 0.45s ease-out, term-btn-pulse 2s ease-in-out 0.45s infinite;
}

.term-hint .term-hint-key {
    display: inline-block;
    border: 1px solid var(--crt-cyan-bright);
    padding: 0 0.45em;
    margin: 0 0.15em;
    background: rgba(77, 224, 255, 0.12);
}

.term-hint.bye {
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes term-hint-in {
    from { opacity: 0; transform: translateX(-50%) translateY(14px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* floating terminal button, appears when the statusbar scrolls away */
.term-fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 9400;
    width: 46px;
    height: 46px;
    appearance: none;
    background: rgba(2, 8, 22, 0.92);
    border: 1px solid var(--crt-cyan-dim);
    color: var(--crt-cyan);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 0 14px rgba(77, 224, 255, 0.22);
    text-shadow: 0 0 6px var(--crt-glow-soft);
}

.term-fab.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.term-fab:hover,
.term-fab:focus {
    background: var(--crt-cyan);
    color: var(--crt-bg-void);
    text-shadow: none;
    box-shadow: 0 0 16px var(--crt-glow);
    outline: none;
}

/* News ticker */
.hud-ticker {
    overflow: hidden;
    background: rgba(2, 7, 20, 0.85);
    border-top: 1px solid var(--panel-border-dim);
    position: relative;
}

.hud-ticker::before {
    content: 'FEED';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
    background: var(--crt-amber);
    color: var(--crt-bg-void);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.hud-ticker-track {
    display: inline-flex;
    gap: 3.5rem;
    white-space: nowrap;
    padding: 0.45rem 0 0.45rem 5rem;
    width: max-content;
    animation: ticker-scroll 36s linear infinite;
    color: var(--crt-cyan-mid);
    font-size: 0.74rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hud-ticker:hover .hud-ticker-track { animation-play-state: paused; }

.hud-ticker-track a {
    color: var(--crt-cyan);
    border-bottom: none;
    font-weight: 400;
}

.hud-ticker-track a:hover { color: var(--crt-amber); background: none; }

.hud-ticker-track .tick-new {
    color: var(--crt-amber);
    text-shadow: 0 0 5px var(--crt-amber-glow);
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* -------------------------------------------------------------
   9. NAVIGATION
   ------------------------------------------------------------- */
nav[role="navigation"] {
    position: relative;
    z-index: 200;
    background: rgba(2, 7, 20, 0.55);
    border-top: 1px solid var(--panel-border-dim);
    overflow: visible;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0.7rem 0.5rem;
    margin: 0;
    gap: 0.35rem;
    align-items: center;
    position: relative;
    z-index: 300;
}

.nav-links li { margin: 0; }
.nav-links li::marker { content: ''; }

.nav-links a {
    position: relative;
    display: inline-block;
    color: var(--crt-cyan);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    background: transparent;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s, text-shadow 0.2s, box-shadow 0.2s;
    text-shadow: 0 0 4px var(--crt-glow-soft);
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--crt-bg-void);
    background: var(--crt-cyan);
    text-shadow: none;
    box-shadow:
        0 0 12px var(--crt-glow),
        0 0 28px var(--crt-glow-soft);
    outline: none;
}

.nav-links a[aria-current="page"] {
    color: var(--crt-bg-void);
    background: var(--crt-amber);
    text-shadow: none;
    box-shadow:
        0 0 10px var(--crt-amber-glow),
        0 0 24px var(--crt-amber-glow);
}

.nav-links a .full-text { display: inline; }
.nav-links a .short-text { display: none; }

.header-divider {
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--crt-cyan-dim) 20%,
        var(--crt-cyan) 50%,
        var(--crt-cyan-dim) 80%,
        transparent 100%);
    width: 100%;
    margin: 0;
    box-shadow: 0 0 6px var(--crt-glow-soft);
}

/* Dropdown */
.dropdown { position: relative; z-index: 400; }

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-arrow {
    display: inline-block;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #030a1c;
    border: 1px solid var(--crt-cyan);
    box-shadow:
        0 0 0 1px var(--crt-bg-void),
        0 0 24px var(--crt-glow-soft),
        0 18px 40px rgba(0, 0, 0, 0.6);
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    min-width: 250px;
    max-width: calc(100vw - 24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 10000;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--crt-cyan-deep) 60%, transparent);
}

.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu li::marker { content: ''; }

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.1rem;
    color: var(--crt-cyan);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: none;
    text-shadow: 0 0 4px var(--crt-glow-soft);
    background: transparent;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.dropdown-menu a::before {
    content: '▸ ';
    color: var(--crt-amber);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: var(--crt-cyan);
    color: var(--crt-bg-void);
    text-shadow: none;
    outline: none;
    padding-left: 1.4rem;
}

.dropdown-menu a:hover::before,
.dropdown-menu a:focus::before {
    color: var(--crt-bg-void);
}

/* -------------------------------------------------------------
   10. SECTIONS — holographic glass panels
   ------------------------------------------------------------- */
section {
    position: relative;
    margin: 1.7rem 0;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    border: 1px solid var(--panel-border-dim);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 0 26px rgba(77, 224, 255, 0.06),
        inset 0 0 50px rgba(0, 8, 24, 0.45);
    /* corner brackets + glass surface */
    background-image:
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        linear-gradient(var(--crt-cyan), var(--crt-cyan)),
        var(--panel-glass);
    background-size:
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        100% 100%;
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    background-repeat: no-repeat;
}

/* Scroll-driven reveal (scrubbed) — supported browsers only */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        main > section {
            animation: panel-in linear both;
            animation-timeline: view();
            /* Absolute lengte: ook metershoge secties zijn na ~260px
               scrollen volledig zichtbaar */
            animation-range: entry 0px entry 260px;
        }
    }
}

/* Alleen opacity: transform-animaties op secties kunnen als compositor-laag
   boven de nav-dropdown uitkomen (laag-volgorde bug), opacity niet. */
@keyframes panel-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* The .features element is just a grid wrapper, not a panel */
section.features {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Breadcrumb */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--crt-cyan-mid);
    margin-bottom: 1.4rem;
    padding: 0.45rem 0.8rem;
    background: rgba(2, 7, 20, 0.7);
    border: 1px solid var(--panel-border-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
    display: inline-block;
    padding-right: 2rem;
}

.breadcrumb::before {
    content: 'PATH://';
    color: var(--crt-amber);
    margin-right: 0.4rem;
    text-shadow: 0 0 5px var(--crt-amber-glow);
}

.breadcrumb a { color: var(--crt-cyan); border-bottom: none; font-weight: 400; }
.breadcrumb-separator { margin: 0 0.4rem; color: var(--crt-cyan-dim); }
.breadcrumb-current { color: var(--crt-cyan-bright); }

/* -------------------------------------------------------------
   11. NEWS
   ------------------------------------------------------------- */
.news-date {
    display: inline-block;
    color: var(--crt-amber);
    font-size: 0.74rem;
    font-weight: 400;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 4px var(--crt-amber-glow);
    font-family: var(--font-mono);
    border: 1px solid color-mix(in srgb, var(--crt-amber) 45%, transparent);
    padding: 0.15rem 0.6rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.news-item {
    padding-bottom: 0.5rem;
}

.news-item + .news-item {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px dashed var(--crt-cyan-deep);
}

.news-item h3 {
    color: var(--crt-cyan-bright);
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
}

.news-text p { line-height: 1.65; }

.news-image picture, 
.news-image-static picture,
.news-image-expanded picture,
.intro-image picture,
.tool-preview picture {
    display: block;
    border: 1px solid var(--panel-border);
    padding: 6px;
    background: var(--crt-bg-void);
    box-shadow:
        inset 0 0 0 1px rgba(77, 224, 255, 0.08),
        0 0 16px rgba(77, 224, 255, 0.10);
    position: relative;
    overflow: hidden;
}

.news-image picture::after, 
.news-image-static picture::after,
.news-image-expanded picture::after,
.intro-image picture::after,
.tool-preview picture::after {
    content: '';
    position: absolute;
    inset: 6px;
    pointer-events: none;
    background:
        repeating-linear-gradient(to bottom,
            transparent 0,
            transparent 2px,
            rgba(0,0,0,0.22) 2px,
            rgba(0,0,0,0.22) 3px);
    mix-blend-mode: multiply;
    opacity: 0.45;
}

.news-image img,
.news-image-static img,
.news-image-expanded img,
.intro-image img,
.tool-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.image-caption {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--crt-cyan-mid);
    margin-top: 0.6rem;
    font-style: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.image-caption::before { content: '// '; color: var(--crt-amber); }

.news-content { margin: 0; max-width: 100%; }
.news-content::after { content: ''; display: table; clear: both; }
.news-text    { width: 100%; }

.news-expanded-content {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    max-height: 0;
}

.news-expanded-content.expanded {
    opacity: 1;
    max-height: 5000px;
}

.news-expanded-content::after {
    content: '';
    display: table;
    clear: both;
}

.news-image-static {
    float: right;
    width: 40%;
    max-width: 400px;
    margin: 0 0 1.2rem 1.4rem;
}

.news-image-expanded {
    display: none;
    float: right;
    width: 40%;
    max-width: 400px;
    margin: 0 0 1.2rem 1.4rem;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.news-image-expanded.visible { display: block; opacity: 1; }

/* -------------------------------------------------------------
   12. INTRO
   ------------------------------------------------------------- */
.intro-content {
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.intro-text { flex: 1; min-width: 280px; }

.intro-image { flex: 0 0 auto; max-width: 380px; }

.intro-image-link {
    display: block;
    border: none;
    text-decoration: none;
    background: transparent;
}

.intro-image-link:hover,
.intro-image-link:focus { background: transparent; }

.intro-image-link:hover picture,
.intro-image-link:focus picture {
    border-color: var(--crt-amber);
    box-shadow:
        inset 0 0 0 1px rgba(255, 176, 0, 0.2),
        0 0 22px var(--crt-amber-glow);
}

.intro-link {
    color: var(--crt-amber);
    font-weight: 700;
    border-bottom: 1px solid var(--crt-amber);
    text-shadow: 0 0 4px var(--crt-amber-glow);
}

.intro-link:hover,
.intro-link:focus {
    color: var(--crt-bg-void);
    background: var(--crt-amber);
    border-bottom-color: var(--crt-amber);
    text-shadow: none;
}

.intro-link strong { color: inherit; text-shadow: none; }

/* -------------------------------------------------------------
   13. TOOLS GRID — tilting holo-cards with animated borders
   ------------------------------------------------------------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
    margin: 1.2rem 0;
    container-type: inline-size;
}

.tool-card {
    --card-cut: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: visible;
    border: none;
    background: transparent;
    clip-path: polygon(
        var(--card-cut) 0, 100% 0,
        100% calc(100% - var(--card-cut)),
        calc(100% - var(--card-cut)) 100%,
        0 100%, 0 var(--card-cut));
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.18s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Border layer */
.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(165deg,
            color-mix(in srgb, var(--crt-cyan) 55%, transparent),
            color-mix(in srgb, var(--crt-cyan) 12%, transparent) 40%,
            color-mix(in srgb, var(--crt-cyan) 30%, transparent));
    transition: background 0.3s;
}

/* Surface layer */
.tool-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: 0;
    clip-path: polygon(
        var(--card-cut) 0, 100% 0,
        100% calc(100% - var(--card-cut)),
        calc(100% - var(--card-cut)) 100%,
        0 100%, 0 var(--card-cut));
    background:
        linear-gradient(165deg, rgba(9, 28, 56, 0.95), rgba(3, 9, 22, 0.97));
}

.tool-card:hover::before {
    background: conic-gradient(from var(--ang),
        transparent 0%,
        var(--crt-cyan) 10%,
        transparent 24%,
        transparent 48%,
        var(--crt-amber) 60%,
        transparent 74%,
        transparent 100%);
    animation: spin-border 2.6s linear infinite;
}

@keyframes spin-border {
    to { --ang: 360deg; }
}

.tool-card > * {
    position: relative;
    z-index: 2;
}

.tool-card h3 {
    font-size: 0.82rem;
    margin: 0;
    padding: 0.65rem 0.9rem 0.6rem 1.4rem;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--crt-cyan-deep) 85%, transparent),
        transparent 85%);
    color: var(--crt-cyan-bright);
    border-bottom: 1px solid var(--panel-border-dim);
    text-shadow: 0 0 5px var(--crt-glow);
    letter-spacing: 0.12em;
    text-align: left;
    line-height: 1.35;
    min-height: 0;
    font-family: var(--font-display);
    font-weight: 700;
}

.tool-card h3::before {
    content: '■ ';
    color: var(--crt-amber);
    text-shadow: 0 0 5px var(--crt-amber-glow);
}

.tool-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.8rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--panel-border-dim);
    position: relative;
    overflow: hidden;
    box-shadow: none;
    min-height: 0;
}

.tool-preview::before,
.tool-preview::after { content: none; }

.tool-preview picture {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.tool-preview picture::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(to bottom,
            transparent 0, transparent 2px,
            rgba(0,0,0,0.28) 2px, rgba(0,0,0,0.28) 3px);
    mix-blend-mode: multiply;
    opacity: 0.5;
    pointer-events: none;
}

.tool-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.tool-card p {
    flex: 1 1 auto;
    padding: 0.9rem 1.1rem 0.5rem;
    color: var(--crt-cyan-bright);
    text-align: left;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.tool-card .tool-link {
    margin: 0.4rem 1.1rem 1.1rem;
    align-self: flex-start;
}

.tool-card:hover h3 {
    background: linear-gradient(90deg, var(--crt-amber), color-mix(in srgb, var(--crt-amber) 30%, transparent) 90%);
    color: var(--crt-bg-void);
    text-shadow: none;
}

.tool-card:hover h3::before {
    color: var(--crt-bg-void);
    text-shadow: none;
}

/* -------------------------------------------------------------
   14. BUTTONS — angular command buttons with light sweep
   ------------------------------------------------------------- */
.tool-link,
.download-button,
.read-more-btn,
.submit-button,
.release-link {
    --btn-cut: 9px;
    position: relative;
    display: inline-block;
    background: linear-gradient(180deg, rgba(255, 176, 0, 0.14), rgba(255, 176, 0, 0.03));
    color: var(--crt-amber);
    padding: 0.7rem 1.5rem;
    border: none;
    box-shadow:
        inset 0 0 0 1px var(--crt-amber),
        0 0 10px rgba(255, 176, 0, 0.12);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.2s, background 0.25s, box-shadow 0.25s, text-shadow 0.2s, transform 0.15s;
    text-shadow: 0 0 6px var(--crt-amber-glow);
    border-radius: 0;
    line-height: 1.2;
    clip-path: polygon(
        var(--btn-cut) 0, 100% 0,
        100% calc(100% - var(--btn-cut)),
        calc(100% - var(--btn-cut)) 100%,
        0 100%, 0 var(--btn-cut));
    overflow: hidden;
}

.tool-link::before,
.download-button::before,
.read-more-btn::before,
.submit-button::before,
.release-link::before {
    content: '▸ ';
    color: inherit;
}

/* Light sweep */
.tool-link::after,
.download-button::after,
.read-more-btn::after,
.submit-button::after,
.release-link::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 50%;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.45s ease;
    pointer-events: none;
}

.tool-link:hover::after,
.tool-link:focus::after,
.download-button:hover::after,
.download-button:focus::after,
.read-more-btn:hover::after,
.read-more-btn:focus::after,
.submit-button:hover::after,
.submit-button:focus::after,
.release-link:hover::after,
.release-link:focus::after {
    left: 130%;
}

.tool-link:hover,
.tool-link:focus,
.download-button:hover,
.download-button:focus,
.read-more-btn:hover,
.read-more-btn:focus,
.submit-button:hover,
.submit-button:focus,
.release-link:hover,
.release-link:focus {
    background: var(--crt-amber);
    color: var(--crt-bg-void);
    text-shadow: none;
    box-shadow:
        inset 0 0 0 1px var(--crt-amber),
        0 0 16px var(--crt-amber-glow),
        0 0 36px var(--crt-amber-glow);
    outline: none;
}

.tool-link:active,
.download-button:active,
.read-more-btn:active,
.submit-button:active {
    transform: translateY(2px);
}

.read-less-text { display: none; }

/* -------------------------------------------------------------
   15. DOWNLOAD SECTION — hero CTA
   ------------------------------------------------------------- */
.download-section {
    text-align: center;
    padding: 2.2rem 1.5rem;
}

.download-section h2 {
    justify-content: center;
    color: var(--crt-cyan-bright);
}

.download-section h2::after { display: none; }

.download-section .download-button {
    font-size: 1.02rem;
    padding: 1rem 2.4rem;
    margin: 0.5rem 0;
    animation: cta-pulse 2.6s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow:
            inset 0 0 0 1px var(--crt-amber),
            0 0 10px rgba(255, 176, 0, 0.15);
    }
    50% {
        box-shadow:
            inset 0 0 0 1px var(--crt-amber),
            0 0 22px rgba(255, 176, 0, 0.45),
            0 0 50px rgba(255, 176, 0, 0.18);
    }
}

.download-section .download-button:hover { animation: none; }

.download-section small {
    color: var(--crt-cyan-mid);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* -------------------------------------------------------------
   16. PLUGIN SCREENSHOT
   ------------------------------------------------------------- */
.plugin-screenshot {
    text-align: center;
    min-height: auto;
}

.plugin-screenshot h2 { justify-content: center; }

.plugin-showcase {
    margin: 1rem auto;
    max-width: 760px;
    border: 1px solid var(--panel-border);
    background: var(--crt-bg-void);
    padding: 6px;
    position: relative;
    box-shadow:
        inset 0 0 0 1px rgba(77, 224, 255, 0.08),
        0 0 22px rgba(77, 224, 255, 0.16);
}

.plugin-showcase::after {
    content: '';
    position: absolute;
    inset: 6px;
    pointer-events: none;
    background:
        repeating-linear-gradient(to bottom,
            transparent 0, transparent 2px,
            rgba(0,0,0,0.22) 2px, rgba(0,0,0,0.22) 3px);
    mix-blend-mode: multiply;
    opacity: 0.45;
}

.plugin-showcase img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* -------------------------------------------------------------
   17. FEATURES
   ------------------------------------------------------------- */
.features {
    display: grid;
    gap: 1.5rem;
    margin: 1.7rem 0;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .features { grid-template-columns: 1fr 1fr; }
    .features > article:only-child { grid-column: 1 / -1; }
}

.feature-box {
    position: relative;
    background: var(--panel-glass-deep);
    padding: 1.3rem 1.3rem 1.1rem;
    border: 1px solid var(--panel-border-dim);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        inset 0 0 0 1px rgba(77, 224, 255, 0.04),
        0 0 12px rgba(77, 224, 255, 0.07);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--crt-cyan);
    border-left: 2px solid var(--crt-cyan);
    pointer-events: none;
}

.feature-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--crt-cyan);
    border-right: 2px solid var(--crt-cyan);
    pointer-events: none;
}

.feature-box:hover {
    border-color: var(--panel-border);
    box-shadow:
        inset 0 0 0 1px rgba(77, 224, 255, 0.08),
        0 0 22px rgba(77, 224, 255, 0.15);
}

/* sections that double as feature boxes keep panel look */
section.feature-box {
    background-image: none;
    background: var(--panel-glass);
}

.feature-box h2,
.feature-box h3 {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.feature-box ul li { margin-bottom: 0.35rem; }

/* -------------------------------------------------------------
   18. FAQ
   ------------------------------------------------------------- */
.faq h3 {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--crt-cyan-deep);
    font-size: 0.98rem;
}

.faq h3::before {
    content: '? ';
    color: var(--crt-amber);
    text-shadow: 0 0 5px var(--crt-amber-glow);
}

.faq h3:first-of-type {
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: none;
}

.faq p { margin-bottom: 1rem; }

/* -------------------------------------------------------------
   19. CONTACT FORM
   ------------------------------------------------------------- */
.contact-info {
    background: rgba(2, 7, 20, 0.6);
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--panel-border-dim);
    border-left: 3px solid var(--crt-amber);
    margin-bottom: 1.5rem;
}

.contact-info h3 { font-size: 0.95rem; }
.contact-info ul { padding-left: 1.2rem; }
.contact-info li { margin-bottom: 0.45rem; }

.contact-form {
    background: rgba(2, 7, 20, 0.55);
    padding: 1.5rem 1.3rem;
    border: 1px solid var(--panel-border-dim);
    margin: 1rem 0;
    box-shadow:
        inset 0 0 0 1px rgba(77, 224, 255, 0.04),
        0 0 12px rgba(77, 224, 255, 0.07);
    min-height: 600px;
}

.contact-form label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--crt-cyan);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    text-shadow: 0 0 4px var(--crt-glow-soft);
}

.contact-form label::before {
    content: '> ';
    color: var(--crt-amber);
}

.contact-form .form-group { margin-bottom: 1.5rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--crt-cyan-deep);
    border-radius: 0;
    background: rgba(1, 3, 12, 0.75);
    color: var(--crt-cyan-bright);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    box-sizing: border-box;
    height: calc(2.8rem + 2px);
    caret-color: var(--crt-amber);
    text-shadow: 0 0 4px var(--crt-glow-soft);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--crt-cyan) 50%),
        linear-gradient(135deg, var(--crt-cyan) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.contact-form select option {
    background: var(--crt-bg-deep);
    color: var(--crt-cyan-bright);
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
    height: auto;
    line-height: 1.55;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--crt-amber);
    background: rgba(2, 7, 20, 0.9);
    box-shadow:
        0 0 10px var(--crt-amber-glow),
        inset 0 0 0 1px rgba(255, 176, 0, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--crt-cyan-deep);
}

.form-required {
    color: var(--crt-amber);
    text-shadow: 0 0 4px var(--crt-amber-glow);
}

.form-success,
.form-error {
    padding: 1rem 1.2rem;
    border-radius: 0;
    margin-bottom: 1.5rem;
    display: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 3rem;
}

.form-success {
    background: rgba(77, 255, 154, 0.08);
    border: 1px solid var(--crt-green);
    color: var(--crt-green);
    text-shadow: 0 0 6px var(--crt-green-glow);
}

.form-success::before { content: '[ OK ] '; font-weight: 700; }

.form-error {
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid var(--crt-red);
    color: var(--crt-red);
    text-shadow: 0 0 6px var(--crt-red-glow);
}

.form-error::before { content: '[ ERR ] '; font-weight: 700; }

.captcha-container {
    margin: 1.2rem 0;
    color: var(--crt-cyan-mid);
}

.submit-button { display: inline-block; margin-top: 0.5rem; }

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* -------------------------------------------------------------
   20. ARTIST / MUSIC PAGE
   ------------------------------------------------------------- */
.artist-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.7rem;
    flex-wrap: wrap;
    gap: 1.8rem;
    padding: 1.6rem;
}

.artist-header > picture {
    flex: 0 0 auto;
    position: relative;
    padding: 10px;
    overflow: visible;
    border: none;
    background: none;
    box-shadow: none;
}

/* Rotating orbital ring around the artist logo */
.artist-header > picture::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed var(--crt-cyan-dim);
    animation: orbit-spin 26s linear infinite;
    pointer-events: none;
}

.artist-header > picture::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--crt-amber);
    border-right-color: color-mix(in srgb, var(--crt-amber) 40%, transparent);
    animation: orbit-spin 9s linear infinite reverse;
    pointer-events: none;
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

.artist-logo {
    max-width: 180px;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--crt-cyan);
    box-shadow:
        0 0 18px var(--crt-glow-soft),
        inset 0 0 0 2px var(--crt-bg-void);
    background: var(--crt-bg-void);
}

.artist-bio { flex: 1; min-width: 280px; }

.artist-photo {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    aspect-ratio: 3/4;
    object-fit: cover;
    margin: 1.4rem 0;
    display: block;
    border: 1px solid var(--panel-border);
    padding: 6px;
    background: var(--crt-bg-void);
}

.music-section { margin: 2rem 0; }

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}

.platform-card {
    position: relative;
    background: rgba(2, 7, 20, 0.6);
    padding: 0;
    border: 1px solid var(--panel-border-dim);
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.platform-card:hover {
    border-color: var(--crt-amber);
    box-shadow: 0 0 16px var(--crt-amber-glow);
    transform: translateY(-3px);
}

.platform-card a {
    display: block;
    padding: 1.05rem 0.6rem;
    color: var(--crt-cyan);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: none;
}

.platform-card a:hover,
.platform-card a:focus {
    background: rgba(255, 176, 0, 0.08);
    color: var(--crt-amber);
}

.select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
    margin: 1.2rem 0;
}

.select-item {
    background: rgba(2, 7, 20, 0.6);
    padding: 0.75rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--crt-cyan-deep) 70%, transparent);
    border-left: 3px solid var(--crt-cyan-dim);
    color: var(--crt-cyan-bright);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.select-item:hover {
    border-left-color: var(--crt-amber);
    background: rgba(255, 176, 0, 0.05);
    transform: translateX(3px);
}

.select-item::before {
    content: '▸ ';
    color: var(--crt-amber);
}

.label-section {
    margin: 1.6rem 0;
    padding: 1.4rem;
    background: rgba(2, 7, 20, 0.6);
    border: 1px solid var(--panel-border-dim);
}

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin: 1.7rem 0;
    align-items: flex-start;
}

.column { flex: 1; min-width: 280px; }

.column img {
    margin-top: 1rem;
    max-height: 800px;
    width: auto;
    object-fit: cover;
    border: 1px solid var(--panel-border);
    padding: 6px;
    background: var(--crt-bg-void);
}

.two-column:first-of-type .column:last-child img { margin-top: 1rem; }
.two-column:nth-of-type(2) .column:last-child img {
    object-fit: contain;
    object-position: center;
    max-height: 500px;
    margin-top: 1rem;
    width: auto;
}

.label-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
    gap: 1.6rem;
}

.label-logo {
    max-height: 110px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    aspect-ratio: auto;
}

.label-logo:hover {
    transform: scale(1.05);
    filter: none;
}

.eye-logo { max-height: 140px; }
.cdi-logo { max-height: 170px; }

.mastering-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 1.6rem 0;
}

/* -------------------------------------------------------------
   21. RELEASES
   ------------------------------------------------------------- */
.releases-container {
    max-width: 860px;
    margin: 0 auto;
    counter-reset: rel;
}

.release-item {
    counter-increment: rel;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.4rem;
    padding: 1.1rem;
    background: rgba(2, 7, 20, 0.6);
    border: 1px solid var(--panel-border-dim);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.release-item::before {
    content: 'REC-' counter(rel, decimal-leading-zero);
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.2rem 0.9rem 0.2rem 1.2rem;
    background: color-mix(in srgb, var(--crt-cyan-deep) 70%, transparent);
    color: var(--crt-cyan);
    font-size: 0.66rem;
    letter-spacing: 2px;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}

.release-item:hover {
    border-color: var(--crt-amber);
    background: rgba(8, 18, 38, 0.8);
    box-shadow:
        inset 0 0 0 1px rgba(255, 176, 0, 0.12),
        0 0 20px var(--crt-amber-glow);
}

.release-thumbnail {
    width: 112px;
    height: 112px;
    margin-right: 1.2rem;
    border: 1px solid var(--panel-border);
    padding: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--crt-bg-void);
}

.release-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* cover art is the calling card here: lighter hologram than elsewhere */
    filter:
        grayscale(1)
        sepia(1)
        hue-rotate(165deg)
        saturate(2.2)
        brightness(1.35)
        contrast(0.98);
}

.release-info { flex: 1; }

.release-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--crt-cyan-bright);
    font-family: var(--font-display);
    text-shadow: 0 0 5px var(--crt-glow);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.release-label {
    display: inline-block;
    color: var(--crt-amber);
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-shadow: 0 0 4px var(--crt-amber-glow);
    border: 1px solid color-mix(in srgb, var(--crt-amber) 40%, transparent);
    padding: 0.1rem 0.55rem;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.release-description {
    color: var(--crt-cyan-bright);
    line-height: 1.55;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.release-link { padding: 0.5rem 1.1rem; font-size: 0.82rem; }

/* --- Archive status line above the list --- */
.releases-status {
    max-width: 860px;
    margin: 0 auto 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--crt-cyan-mid);
    border-bottom: 1px dashed var(--crt-cyan-deep);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.releases-status .led {
    color: var(--crt-amber);
    animation: rel-led-blink 2.2s steps(1) infinite;
}
@keyframes rel-led-blink {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0.25; }
}

/* --- Enriched release slabs --- */
.release-item { flex-wrap: wrap; }

.release-meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}
.release-meta-row .release-label { margin-bottom: 0; }

.release-date {
    color: var(--crt-cyan);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 1.8px;
    border: 1px solid var(--panel-border);
    padding: 0.12rem 0.55rem;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.release-stats {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--crt-cyan-mid);
    margin: 0.1rem 0 0.6rem;
}
.release-stats b {
    color: var(--crt-cyan-bright);
    font-weight: 400;
}

.release-description { white-space: pre-line; }
.release-description.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.release-more {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--crt-amber);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 0 0 0.6rem;
}
.release-more:hover { color: var(--crt-cyan-bright); }

.release-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.release-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--crt-cyan-mid);
    border: 1px dashed color-mix(in srgb, var(--crt-cyan) 30%, transparent);
    padding: 0.08rem 0.5rem;
}

.release-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.release-play,
.release-tracks-btn {
    appearance: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 1.1rem;
    background: rgba(2, 7, 20, 0.8);
    color: var(--crt-cyan);
    border: 1px solid var(--crt-cyan-dim);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.release-play:hover,
.release-tracks-btn:hover {
    color: var(--crt-bg-void);
    background: var(--crt-cyan);
    border-color: var(--crt-cyan);
}
.release-play[aria-pressed="true"] {
    color: var(--crt-bg-void);
    background: var(--crt-amber);
    border-color: var(--crt-amber);
}

/* tiny EQ bars inside the play button while playing */
.release-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 0.8em;
    margin-right: 0.45rem;
    vertical-align: -0.1em;
}
.release-eq i {
    width: 3px;
    background: currentColor;
    animation: rel-eq 0.9s ease-in-out infinite;
}
.release-eq i:nth-child(1) { height: 45%; animation-delay: 0s; }
.release-eq i:nth-child(2) { height: 90%; animation-delay: 0.22s; }
.release-eq i:nth-child(3) { height: 60%; animation-delay: 0.44s; }
.release-eq i:nth-child(4) { height: 80%; animation-delay: 0.11s; }
@keyframes rel-eq {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* --- Expandable area: tracklist + embedded player --- */
.release-expand {
    flex-basis: 100%;
    border-top: 1px dashed var(--crt-cyan-deep);
    margin-top: 1rem;
    padding-top: 0.9rem;
    animation: rel-expand-in 0.3s ease both;
}
@keyframes rel-expand-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
.release-tracklist {
    list-style: none;
    padding: 0;
    margin: 0 0 0.4rem;
    font-family: var(--font-mono);
}
.release-tracklist li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.26rem 0;
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--crt-cyan-bright);
}
.release-track-n {
    flex: 0 0 2.2em;
    color: var(--crt-cyan-mid);
}
.release-track-dots {
    flex: 1;
    border-bottom: 2px dotted rgba(77, 224, 255, 0.18);
    transform: translateY(-0.22em);
    min-width: 1rem;
}
.release-track-time { color: var(--crt-cyan-mid); }

.release-player { margin-top: 0.9rem; }
.release-player iframe {
    display: block;
    width: 100%;
    height: 120px;
    border: 1px solid var(--panel-border);
    background: var(--crt-bg-void);
}
.release-player-note {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    color: var(--crt-cyan-deep);
    margin-top: 0.3rem;
    text-transform: uppercase;
}

.loading-message {
    text-align: center;
    padding: 1.8rem;
    color: var(--crt-cyan);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    text-shadow: 0 0 6px var(--crt-glow);
    animation: crt-cursor-blink 1.2s infinite;
}

.loading-message::before { content: '> RETRIEVING DATA'; }
.loading-message::after  { content: ' █'; }

.error-message {
    text-align: center;
    padding: 1.6rem;
    color: var(--crt-red);
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid var(--crt-red);
    margin: 1.4rem 0;
    text-shadow: 0 0 6px var(--crt-red-glow);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-message::before { content: '[ ERR ] '; }

/* -------------------------------------------------------------
   22. TESTIMONIALS
   ------------------------------------------------------------- */
.testimonials {
    background: var(--panel-glass);
    padding: 1.4rem;
    border: 1px solid var(--panel-border-dim);
    margin: 1.4rem 0;
}

/* -------------------------------------------------------------
   23. IMAGES — holographic duotone, true colour on hover
   ------------------------------------------------------------- */
img {
    display: block;
    object-fit: contain;
    max-width: 100%;
    height: auto;
    filter: var(--crt-img-duotone);
    transition: filter 0.45s ease;
}

picture {
    display: block;
    overflow: hidden;
}

picture img,
picture source {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Hovering an image (or its card) decodes the hologram to full colour */
img:hover,
a:hover img,
a:focus img,
.tool-card:hover img,
.release-item:hover img,
.intro-image-link:hover img,
.intro-image-link:focus img {
    filter: none;
}

.crt-banner img,
.no-duotone,
img.no-duotone {
    filter: none;
}

img[loading="lazy"] { content-visibility: auto; }

.js-lazy-load { opacity: 0; transition: opacity 0.3s; }
.js-lazy-load.loaded { opacity: 1; }

/* -------------------------------------------------------------
   24. FOOTER — terminal status block (DOM comes from shared footer.js)
   ------------------------------------------------------------- */
footer[role="contentinfo"] {
    text-align: center;
    padding: 1.7rem 1.2rem 1.5rem;
    color: var(--crt-cyan-mid);
    margin-top: 2.6rem;
    background: var(--panel-glass-deep);
    border: 1px solid var(--panel-border-dim);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: visible;
    box-shadow:
        inset 0 0 0 1px rgba(77, 224, 255, 0.05),
        0 0 16px rgba(77, 224, 255, 0.09);
}

footer[role="contentinfo"]::before {
    content: 'SYS://LINKS';
    display: block;
    margin: -1.7rem -1.2rem 1.1rem;
    padding: 0.45rem 1.1rem;
    color: var(--crt-cyan);
    background: rgba(2, 7, 20, 0.85);
    border-bottom: 1px solid var(--panel-border-dim);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
    text-shadow: 0 0 4px var(--crt-glow-soft);
    overflow: hidden;
    white-space: nowrap;
}

footer[role="contentinfo"]::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    border-top: 2px solid var(--crt-cyan);
    border-right: 2px solid var(--crt-cyan);
    pointer-events: none;
}

/* font-size:0 swallows the "·" text-node separators in the shared markup */
.footer-links {
    margin-bottom: 1.1rem;
    line-height: 1;
    font-size: 0;
}

.footer-links a {
    display: inline-block;
    color: var(--crt-cyan);
    padding: 0.32rem 0.7rem;
    margin: 3px;
    border: 1px solid color-mix(in srgb, var(--crt-cyan-deep) 80%, transparent);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-shadow: 0 0 4px var(--crt-glow-soft);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--crt-amber);
    border-color: var(--crt-amber);
    background: rgba(255, 176, 0, 0.07);
    text-shadow: 0 0 6px var(--crt-amber-glow);
}

.social-links { margin-bottom: 1.1rem; }

.social-links a {
    display: inline-block;
    color: var(--crt-amber);
    padding: 0.4rem 0.9rem;
    text-decoration: none;
    border: 1px solid var(--crt-amber);
    background: linear-gradient(180deg, rgba(255, 176, 0, 0.1), transparent);
    margin: 0 0.25rem 0.4rem;
    font-size: 0.76rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-shadow: 0 0 4px var(--crt-amber-glow);
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.social-links a:hover,
.social-links a:focus {
    color: var(--crt-bg-void);
    background: var(--crt-amber);
    text-shadow: none;
    box-shadow: 0 0 14px var(--crt-amber-glow);
}

footer[role="contentinfo"] p {
    font-size: 0.76rem;
    color: var(--crt-cyan-mid);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0;
}

footer[role="contentinfo"] p::after {
    content: ' █';
    color: var(--crt-amber);
    animation: crt-cursor-blink 1.1s infinite;
}

/* -------------------------------------------------------------
   25. TERMINAL OVERLAY (injected by crt-scroll.js)
   ------------------------------------------------------------- */
.joost-terminal {
    position: fixed;
    inset: 0;
    z-index: 10004;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(0.8rem, 6vh, 4rem) 1rem 1rem;
    background: rgba(1, 3, 12, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.joost-terminal.open { display: flex; }

.joost-terminal-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: min(560px, 86vh);
    display: flex;
    flex-direction: column;
    background: rgba(2, 8, 20, 0.96);
    border: 1px solid var(--crt-cyan);
    box-shadow:
        0 0 0 1px var(--crt-bg-void),
        0 0 40px var(--crt-glow-soft),
        0 30px 80px rgba(0, 0, 0, 0.7);
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    animation: term-in 0.18s ease-out;
    transition: border-color 0.5s, box-shadow 0.5s;
}

/* Password change */
.joost-terminal-panel.pwd-glow {
    border-color: #ff3b30;
    box-shadow:
        0 0 0 1px var(--crt-bg-void),
        0 0 40px rgba(255, 59, 48, 0.45),
        inset 0 0 40px rgba(255, 59, 48, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.7);
}

/* self-destruct alarm */
.joost-terminal-panel.alert-shake {
    border-color: #ff3b30;
    animation: term-alert-shake 0.28s linear infinite;
}

@keyframes term-alert-shake {
    0% { transform: translate(1px, 0); box-shadow: 0 0 30px rgba(255, 59, 48, 0.5); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); box-shadow: 0 0 50px rgba(255, 59, 48, 0.75); }
    75% { transform: translate(-1px, 2px); }
    100% { transform: translate(1px, -1px); box-shadow: 0 0 30px rgba(255, 59, 48, 0.5); }
}

/* transporter dematerialization */
.joost-terminal-panel.beam-out {
    animation: term-beam-out 0.8s ease-in forwards;
}

/* CRT power-down for tearsinrain */
.joost-terminal-panel.power-down {
    animation: term-power-down 2.4s ease-in forwards;
}

@keyframes term-power-down {
    0% { opacity: 1; transform: scaleY(1); filter: brightness(1); }
    18% { opacity: 1; transform: scaleY(1); filter: brightness(1.6); }
    30% { opacity: 0.9; transform: scaleY(0.012); filter: brightness(3); }
    42% { opacity: 0.7; transform: scaleY(0.006); filter: brightness(4); }
    60% { opacity: 0; transform: scaleY(0.004); filter: brightness(0.5); }
    78% { opacity: 0; transform: scaleY(0.004); }
    100% { opacity: 1; transform: scaleY(1); filter: brightness(1); }
}

/* holodeck wall: black with amber grid */
.holodeck-grid {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(0deg, rgba(255, 184, 56, 0.5) 0 2px, transparent 2px 120px),
        repeating-linear-gradient(90deg, rgba(255, 184, 56, 0.5) 0 2px, transparent 2px 120px),
        #000;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.holodeck-grid.on {
    opacity: 1;
}

.holodeck-grid span {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3vw, 1.6rem);
    letter-spacing: 0.3em;
    color: var(--crt-amber);
    text-shadow: 0 0 14px var(--crt-amber-glow);
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid var(--crt-amber);
    padding: 0.8em 1.6em;
}

/* red alert: pulsing red vignette over the whole page */
.redalert-overlay {
    position: fixed;
    inset: 0;
    z-index: 9300;
    pointer-events: none;
    animation: redalert-pulse 0.9s ease-in-out infinite;
}

@keyframes redalert-pulse {
    0%, 100% { box-shadow: inset 0 0 60px rgba(255, 59, 48, 0.25); }
    50% { box-shadow: inset 0 0 180px rgba(255, 59, 48, 0.75); }
}

/* T-800 vision: red tint over the page */
.t800-overlay {
    position: fixed;
    inset: 0;
    z-index: 9300;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 4px),
        radial-gradient(ellipse at center, rgba(255, 30, 20, 0.16) 0%, rgba(120, 0, 0, 0.34) 100%);
    mix-blend-mode: screen;
    animation: t800-flicker 0.12s steps(2, jump-none) infinite;
}

@keyframes t800-flicker {
    from { opacity: 0.92; }
    to { opacity: 1; }
}

@keyframes term-beam-out {
    0% { opacity: 1; filter: brightness(1); }
    30% { opacity: 0.9; filter: brightness(2.4) saturate(0.4); }
    100% { opacity: 0; filter: brightness(4) blur(6px); transform: scaleY(1.06); }
}

@keyframes term-in {
    from { opacity: 0; transform: translateY(-14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.joost-terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 1rem 0.45rem 1.4rem;
    background: var(--crt-cyan-deep);
    color: var(--crt-cyan-bright);
    font-size: 0.74rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--crt-cyan);
}

.joost-terminal-bar button {
    appearance: none;
    background: transparent;
    border: 1px solid var(--crt-cyan);
    color: var(--crt-cyan-bright);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.1rem 0.55rem;
    cursor: pointer;
    letter-spacing: 1px;
}

.joost-terminal-bar button:hover {
    background: var(--crt-red);
    border-color: var(--crt-red);
    color: var(--crt-bg-void);
}

.joost-terminal-out {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--crt-cyan-bright);
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 200px;
}

.joost-terminal-out .t-dim   { color: var(--crt-cyan-mid); }
.joost-terminal-out .t-amber { color: var(--crt-amber); text-shadow: 0 0 4px var(--crt-amber-glow); }
.joost-terminal-out .t-green { color: var(--crt-green); }
.joost-terminal-out .t-err   { color: var(--crt-red); }

/* help overview: two columns of command + description */
.joost-terminal-out .term-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1em 1.6rem;
    margin: 0.3em 0;
}

.term-help-grid .th {
    grid-column: 1 / -1;
    margin-top: 0.7em;
    letter-spacing: 0.18em;
}

.term-help-grid .th:first-child {
    margin-top: 0;
}

.term-help-grid .te {
    display: flex;
    gap: 0.7em;
    min-width: 0;
}

.term-help-grid .te b {
    flex: 0 0 8.5em;
    font-weight: 400;
    color: var(--crt-cyan-bright);
    text-shadow: 0 0 4px var(--crt-glow-soft);
}

.term-help-grid .te span {
    color: var(--crt-cyan-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 620px) {
    .joost-terminal-out .term-help-grid {
        grid-template-columns: 1fr;
    }
}

.joost-terminal-in {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-top: 1px solid var(--crt-cyan-deep);
    background: rgba(1, 3, 12, 0.6);
}

.joost-terminal-in .prompt {
    color: var(--crt-amber);
    text-shadow: 0 0 5px var(--crt-amber-glow);
    font-size: 0.9rem;
    white-space: nowrap;
}

.joost-terminal-in input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--crt-cyan-bright);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    caret-color: var(--crt-amber);
    text-shadow: 0 0 4px var(--crt-glow-soft);
}

/* -------------------------------------------------------------
   26. BOOT OVERLAY (injected by crt-scroll.js, once per session)
   ------------------------------------------------------------- */
.joost-boot {
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: var(--crt-bg-void);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease;
    cursor: pointer;
}

.joost-boot.done { opacity: 0; pointer-events: none; }

.joost-boot-inner {
    width: min(560px, 90vw);
    font-family: var(--font-mono);
    color: var(--crt-cyan);
    font-size: clamp(0.78rem, 2.4vw, 0.95rem);
    line-height: 1.7;
    letter-spacing: 1px;
    text-shadow: 0 0 6px var(--crt-glow-soft);
}

.joost-boot-inner .b-ok    { color: var(--crt-green); }
.joost-boot-inner .b-amber { color: var(--crt-amber); }

.joost-boot-bar {
    margin-top: 1rem;
    height: 10px;
    border: 1px solid var(--crt-cyan-dim);
    padding: 1px;
}

.joost-boot-bar i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--crt-cyan-deep), var(--crt-cyan));
    box-shadow: 0 0 8px var(--crt-glow);
    transition: width 0.12s linear;
}

.joost-boot-skip {
    margin-top: 0.8rem;
    font-size: 0.68rem;
    color: var(--crt-cyan-deep);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* -------------------------------------------------------------
   27. RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 820px) {
    .crt-statusbar { justify-content: center; }
    .sb-hide-sm { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0.9rem 0.8rem 2rem; }

    h2::after { min-width: 12px; }

    section { padding: 1.2rem 1rem 1rem; }

    .nav-links { gap: 0.25rem; padding: 0.55rem 0.3rem; }
    .nav-links a {
        padding: 0.45rem 0.7rem;
        font-size: 0.74rem;
        letter-spacing: 1px;
    }
    .nav-links a .full-text { display: none; }
    .nav-links a .short-text { display: inline; }

    .dropdown-menu {
        min-width: 230px;
    }

    .intro-content { flex-direction: column; gap: 1rem; }
    .intro-image { max-width: 100%; }

    .news-image-expanded {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }

    .release-item { flex-direction: column; text-align: center; padding: 1.6rem 1rem 1.2rem; }
    .release-thumbnail { margin: 0 0 1rem; width: 144px; height: 144px; }

    .hud-ticker-track { font-size: 0.68rem; }

    .artist-header { justify-content: center; text-align: center; }
    .artist-bio h2 { justify-content: center; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .container { padding: 0.7rem 0.55rem 2rem; }
    .nav-links a { font-size: 0.68rem; padding: 0.4rem 0.5rem; letter-spacing: 0.5px; }
    section { padding: 1rem 0.8rem 0.8rem; }
    .tool-card h3 { font-size: 0.74rem; }
    .crt-statusbar { font-size: 0.62rem; gap: 0.3rem 0.7rem; }
    .header-tagline { font-size: 0.7rem; letter-spacing: 1.5px; }
    .download-section .download-button { font-size: 0.9rem; padding: 0.9rem 1.4rem; }
    .joost-terminal { padding: 0.6rem; }
    .joost-terminal-out { padding: 0.8rem 1rem; font-size: 0.82rem; }
    .joost-terminal-in { padding: 0.6rem 1rem; }
}

/* -------------------------------------------------------------
   28. REDUCED MOTION
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body::after { animation: none; }
    .crt-beam,
    .scroll-progress { display: none; }
    .crt-banner::before,
    .crt-banner::after { animation: none; opacity: 0; }
    .hud-ticker-track { animation: none; }
    .tool-card { transform: none !important; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* -------------------------------------------------------------
   28b. SH-101 WIREFRAME HOLOGRAM (home page)
   ------------------------------------------------------------- */
.holo-stage {
    position: relative;
    background: #000;
    border: 1px solid var(--panel-border);
    box-shadow:
        inset 0 0 60px rgba(77, 224, 255, 0.05),
        0 0 24px rgba(77, 224, 255, 0.08);
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.holo-stage:active {
    cursor: grabbing;
}

#holo-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 920 / 560;
}

/* prev / next hologram selectors */
.holo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 10, 28, 0.55);
    border: 1px solid var(--panel-border);
    color: var(--crt-cyan);
    font-family: var(--font-mono);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 0 10px var(--crt-glow-soft);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    z-index: 2;
}

.holo-arrow:hover,
.holo-arrow:focus-visible {
    background: rgba(77, 224, 255, 0.12);
    color: var(--crt-cyan-bright);
    box-shadow: 0 0 16px var(--crt-glow-soft);
    outline: none;
}

.holo-arrow-left { left: 10px; }
.holo-arrow-right { right: 10px; }

.holo-hud {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--crt-cyan-mid);
    text-shadow: 0 0 8px var(--crt-glow-soft);
    pointer-events: none;
    user-select: none;
}

.holo-hud-tl { top: 10px; left: 14px; }
.holo-hud-tr { top: 10px; right: 14px; color: var(--crt-cyan); }
.holo-hud-bl { bottom: 10px; left: 14px; }
.holo-hud-br { bottom: 10px; right: 14px; }

/* corner brackets, like a targeting reticle */
.holo-stage::before,
.holo-stage::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.holo-stage::before {
    top: 6px;
    left: 6px;
    border-top: 1px solid var(--crt-cyan-dim);
    border-left: 1px solid var(--crt-cyan-dim);
}

.holo-stage::after {
    bottom: 6px;
    right: 6px;
    border-bottom: 1px solid var(--crt-cyan-dim);
    border-right: 1px solid var(--crt-cyan-dim);
}

.holo-caption {
    margin: 0.9rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--crt-cyan-mid);
    text-align: center;
}

@media (max-width: 700px) {
    #holo-canvas { aspect-ratio: 1 / 0.85; }
    .holo-hud { font-size: 0.58rem; }
    .holo-hud-bl { display: none; }
    .holo-caption { font-size: 0.74rem; }
    .holo-arrow { width: 34px; height: 46px; font-size: 1.1rem; }
}

/* -------------------------------------------------------------
   29. LEGACY UTILITY OVERRIDES
   ------------------------------------------------------------- */
.no-cls-shift { min-height: 0; }

.tool-preview img,
.tool-preview source {
    margin: 0 auto;
}

/* -------------------------------------------------------------
   30. OTHER
   ------------------------------------------------------------- */

.break {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px dashed var(--crt-cyan-deep);
}
