/* ═══════════════════════════════════════════════════════════
   L. STOJILJKOVIĆ // SYS_OPERATIVE
   Cyberpunk Terminal — full neon-city corp HUD aesthetic
   ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
sup { font-size: 0.65em; vertical-align: 0.4em; }

/* ──────────  T O K E N S  ────────── */
:root {
    /* Night-city base */
    --bg:           #05030d;
    --bg-deep:      #08061a;
    --bg-elevated:  #0d0a22;
    --bg-card:      rgba(13, 10, 34, 0.78);
    --bg-rack:      rgba(8, 6, 26, 0.7);

    /* Neon palette */
    --cyan:         #00f0ff;
    --cyan-bold:    #84f5ff;
    --cyan-glow:    rgba(0, 240, 255, 0.55);
    --cyan-soft:    rgba(0, 240, 255, 0.12);

    --magenta:      #ff2bd6;
    --magenta-bold: #ff7be8;
    --magenta-glow: rgba(255, 43, 214, 0.55);
    --magenta-soft: rgba(255, 43, 214, 0.10);

    --amber:        #ffb547;
    --amber-glow:   rgba(255, 181, 71, 0.45);

    --lime:         #b7ff5c;
    --lime-glow:    rgba(183, 255, 92, 0.4);

    --violet:       #8a52ff;
    --violet-glow:  rgba(138, 82, 255, 0.4);

    /* Text */
    --fg:           #e8f6ff;
    --fg-soft:      #b9c8e0;
    --fg-muted:     #7a87a6;
    --fg-faint:     #4a5374;
    --fg-grid:      rgba(0, 240, 255, 0.06);

    /* Type */
    --display:      'Major Mono Display', 'JetBrains Mono', ui-monospace, monospace;
    --hud:          'Rajdhani', 'JetBrains Mono', ui-monospace, sans-serif;
    --mono:         'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --serif:        'Rajdhani', 'JetBrains Mono', ui-monospace, sans-serif;

    /* Layout */
    --measure:      720px;
    --gutter:       clamp(16px, 3.5vw, 48px);
    --topbar-h:     58px;
    --rule:         rgba(0, 240, 255, 0.18);
    --rule-soft:    rgba(0, 240, 255, 0.08);
    --rule-magenta: rgba(255, 43, 214, 0.25);
}

[data-theme="light"] {
    --bg:           #f4eef8;
    --bg-deep:      #ece4f4;
    --bg-elevated:  #ffffff;
    --bg-card:      rgba(255, 255, 255, 0.9);
    --bg-rack:      rgba(245, 240, 250, 0.7);

    --cyan:         #007a8c;
    --cyan-bold:    #00a8c0;
    --cyan-glow:    rgba(0, 122, 140, 0.30);
    --cyan-soft:    rgba(0, 122, 140, 0.10);

    --magenta:      #c00080;
    --magenta-bold: #e02898;
    --magenta-glow: rgba(192, 0, 128, 0.30);
    --magenta-soft: rgba(192, 0, 128, 0.10);

    --amber:        #d97706;
    --amber-glow:   rgba(217, 119, 6, 0.25);

    --fg:           #0d0a1f;
    --fg-soft:      #2c2848;
    --fg-muted:     #5a5478;
    --fg-faint:     #8c86a8;
    --fg-grid:      rgba(192, 0, 128, 0.08);

    --rule:         rgba(0, 122, 140, 0.20);
    --rule-soft:    rgba(0, 122, 140, 0.10);
    --rule-magenta: rgba(192, 0, 128, 0.18);
}

::selection { background: var(--magenta); color: var(--bg); text-shadow: none; }

/* ──────────  S K I P  ────────── */
.skip {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background: var(--cyan); color: var(--bg);
    padding: 10px 18px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
    text-transform: uppercase; font-weight: 700;
    z-index: 9999; transition: top 0.2s;
}
.skip:focus { top: 0; outline: none; }

/* ──────────  P R O G R E S S  ────────── */
.read-progress {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--magenta), var(--cyan));
    box-shadow: 0 0 14px var(--cyan-glow), 0 0 22px var(--magenta-glow);
    z-index: 1100;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ──────────  G R A I N  /  V I G N E T T E  /  G R I D  ────────── */
.grain-defs { position: absolute; }
.grain {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    opacity: 0.07;
    mix-blend-mode: screen;
    filter: url(#paperNoise);
    background: var(--bg);
}
[data-theme="light"] .grain { opacity: 0.10; mix-blend-mode: multiply; }

.vignette {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at top left, var(--magenta-glow), transparent 55%),
        radial-gradient(ellipse at bottom right, var(--cyan-glow), transparent 55%),
        radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
    opacity: 0.55;
}
[data-theme="light"] .vignette { opacity: 0.4; }

.grid-bg {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--fg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--fg-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* CRT scanlines */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 2px,
        rgba(0, 240, 255, 0.025) 2px,
        rgba(0, 240, 255, 0.025) 3px
    );
    mix-blend-mode: screen;
    opacity: 0.5;
}
[data-theme="light"] body::after { display: none; }

/* ──────────  B A S E  ────────── */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }

body {
    font-family: var(--hud);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.62;
    color: var(--fg);
    background: var(--bg);
    background-image:
        radial-gradient(1400px 800px at 10% -10%, rgba(255, 43, 214, 0.18), transparent 60%),
        radial-gradient(1100px 700px at 95% 110%, rgba(0, 240, 255, 0.16), transparent 65%),
        radial-gradient(900px 500px at 50% 50%, rgba(138, 82, 255, 0.10), transparent 70%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    transition: background-color 0.45s ease, color 0.3s ease;
}
[data-theme="light"] body {
    background-image:
        radial-gradient(1100px 600px at 12% -10%, rgba(192, 0, 128, 0.12), transparent 60%),
        radial-gradient(900px 500px at 95% 110%, rgba(0, 122, 140, 0.12), transparent 70%);
}

/* ═══════════════════════════════════════════════════════════
   S Y S B A R
   ─────────────────────────────────────────────────────────── */
.sysbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    z-index: 1000;
    display: flex; align-items: stretch;
    background: rgba(5, 3, 13, 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 1px 0 var(--cyan-glow), 0 0 24px rgba(0, 240, 255, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sysbar.is-scrolled {
    background: rgba(5, 3, 13, 0.92);
    box-shadow: 0 1px 0 var(--cyan-glow), 0 8px 32px rgba(0, 240, 255, 0.08), 0 0 1px var(--magenta-glow);
}
[data-theme="light"] .sysbar.is-scrolled { background: rgba(255, 255, 255, 0.92); }
[data-theme="light"] .sysbar { background: rgba(255, 255, 255, 0.78); }

.sys-id {
    display: flex; align-items: center; gap: 4px;
    padding: 0 18px;
    font-family: var(--display);
    font-size: 16px;
    color: var(--cyan);
    text-shadow: 0 0 12px var(--cyan-glow);
    letter-spacing: 0.04em;
    border-right: 1px solid var(--rule);
}
[data-theme="light"] .sys-id { text-shadow: none; }
.sys-id-bracket { color: var(--magenta); font-weight: 700; }
.sys-id-glyph { font-weight: 400; }
.sys-cur {
    display: inline-block;
    width: 0.5em; color: var(--cyan);
    animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.sys-divider { display: none; }

.sys-nav {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.sys-nav::-webkit-scrollbar { display: none; }
.sys-nav a {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 0 14px;
    height: 100%;
    align-self: center;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--fg-muted);
    border-right: 1px solid var(--rule-soft);
    position: relative;
    transition: color 0.2s ease, background 0.25s ease;
    line-height: var(--topbar-h);
    white-space: nowrap;
}
.sys-nav a .cmd-key {
    color: var(--cyan);
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.sys-nav a:hover { color: var(--fg); background: var(--cyan-soft); }
.sys-nav a:hover .cmd-key { opacity: 1; text-shadow: 0 0 8px var(--cyan-glow); }
.sys-nav a.is-active { color: var(--fg); background: linear-gradient(180deg, var(--cyan-soft), transparent 80%); }
.sys-nav a.is-active .cmd-key { opacity: 1; color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }
[data-theme="light"] .sys-nav a.is-active .cmd-key { text-shadow: none; }
.sys-nav a.is-active::after { transform: scaleX(1); }
.sys-nav a.sys-nav-contact.is-active { background: var(--magenta) !important; color: var(--bg) !important; }
.sys-nav a.sys-nav-contact.is-active .cmd-key { color: var(--bg) !important; text-shadow: none !important; }
[data-theme="light"] .sys-nav a:hover .cmd-key { text-shadow: none; }
.sys-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s ease;
    box-shadow: 0 0 8px var(--cyan-glow);
}
.sys-nav a:hover::after { transform: scaleX(1); }
.sys-nav-contact {
    color: var(--magenta) !important;
    background: var(--magenta-soft);
}
.sys-nav-contact .cmd-key { color: var(--magenta) !important; opacity: 1 !important; }
.sys-nav-contact:hover { background: var(--magenta) !important; color: var(--bg) !important; }
.sys-nav-contact:hover .cmd-key { color: var(--bg) !important; text-shadow: none !important; }

.sys-actions {
    display: flex; align-items: center; gap: 6px;
    padding: 0 14px;
    border-left: 1px solid var(--rule);
}

.sys-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--lime);
    text-shadow: 0 0 8px var(--lime-glow);
    margin-right: 4px;
}
[data-theme="light"] .sys-status { color: #2e7d32; text-shadow: none; }
.sys-status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px var(--lime), 0 0 0 0 var(--lime-glow);
    animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
[data-theme="light"] .sys-status-dot { background: #2e7d32; box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.6); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px var(--lime), 0 0 0 0 rgba(183, 255, 92, 0.6); }
    50%      { box-shadow: 0 0 10px var(--lime), 0 0 0 8px rgba(183, 255, 92, 0); }
}

.sys-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 11px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--cyan);
    background: transparent;
    border: 1px solid var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
    transition: all 0.2s ease;
}
[data-theme="light"] .sys-btn { text-shadow: none; }
.sys-btn:hover {
    color: var(--bg);
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan-glow);
    text-shadow: none;
}
.sys-btn-primary {
    color: var(--magenta);
    border-color: var(--magenta);
    text-shadow: 0 0 6px var(--magenta-glow);
}
[data-theme="light"] .sys-btn-primary { text-shadow: none; }
.sys-btn-primary:hover {
    color: var(--bg);
    background: var(--magenta);
    box-shadow: 0 0 16px var(--magenta-glow);
}
.sys-btn-arrow { color: inherit; opacity: 0.7; }

/* ═══════════════════════════════════════════════════════════
   T E R M I N A L   ( M A I N )
   ─────────────────────────────────────────────────────────── */
.terminal {
    position: relative;
    z-index: 2;
    padding: calc(var(--topbar-h) + clamp(28px, 5vw, 56px)) var(--gutter) clamp(60px, 8vw, 100px);
    max-width: 1280px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   H E R O
   ─────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    margin-bottom: clamp(50px, 7vw, 90px);
}

.hero-stamp {
    margin-bottom: clamp(20px, 3vw, 32px);
}
.ascii-mark {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.35;
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
    opacity: 0.85;
    display: inline-block;
    padding: 8px 0;
    overflow-x: auto;
    white-space: pre;
}
[data-theme="light"] .ascii-mark { text-shadow: none; }

/* ──────────  M E T A   B A R  ────────── */
.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    margin-bottom: clamp(28px, 4vw, 44px);
    border: 1px solid var(--rule);
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.04), inset 0 0 24px rgba(255, 43, 214, 0.04);
}
.meta-cell {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 14px;
    border-right: 1px solid var(--rule-soft);
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.4;
}
.meta-cell:last-child { border-right: none; }
.meta-key {
    color: var(--magenta);
    font-size: 9.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--magenta-glow);
    font-weight: 600;
}
[data-theme="light"] .meta-key { text-shadow: none; }
.meta-val { color: var(--fg-soft); }
.meta-val .cyr { color: var(--fg-muted); font-size: 0.92em; }
.meta-bin {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    opacity: 0.55;
    margin-top: 1px;
    text-shadow: 0 0 6px var(--cyan-glow);
}
[data-theme="light"] .meta-bin { text-shadow: none; opacity: 0.7; }

.meta-status {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.06));
}
.meta-status .meta-val {
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
}
[data-theme="light"] .meta-status .meta-val { text-shadow: none; }
.status-pulse {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 var(--cyan), 0 0 12px var(--cyan-glow);
    animation: pulse-cyan 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    margin-right: 4px;
}
@keyframes pulse-cyan {
    0%, 100% { box-shadow: 0 0 12px var(--cyan-glow), 0 0 0 0 rgba(0, 240, 255, 0.6); }
    50%      { box-shadow: 0 0 12px var(--cyan-glow), 0 0 0 9px rgba(0, 240, 255, 0); }
}

/* ──────────  H E R O   N A M E  ────────── */
.hero-name {
    margin-bottom: clamp(36px, 5vw, 60px);
    position: relative;
}
.hn-prefix {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--lime);
    text-shadow: 0 0 8px var(--lime-glow);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    font-weight: 500;
}
[data-theme="light"] .hn-prefix { color: #2e7d32; text-shadow: none; }
.cur-blink {
    color: var(--cyan);
    animation: blink 1.05s steps(1) infinite;
    text-shadow: 0 0 6px var(--cyan-glow);
}
[data-theme="light"] .cur-blink { text-shadow: none; }

.hn-line {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.hn-first {
    font-size: clamp(40px, 8vw, 96px);
    text-shadow: 0 0 32px rgba(232, 246, 255, 0.16);
}
.hn-mid {
    color: var(--magenta);
    font-style: normal;
    text-shadow: 0 0 24px var(--magenta-glow), 0 0 48px var(--magenta-glow);
    position: relative;
    display: inline-block;
}
[data-theme="light"] .hn-first, [data-theme="light"] .hn-mid { text-shadow: none; }

/* RGB-split glitch headline */
.hn-second {
    font-size: clamp(38px, 9vw, 110px);
    color: var(--fg);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 38px rgba(232, 246, 255, 0.16);
}
[data-theme="light"] .hn-second { text-shadow: none; }
.hn-second::before, .hn-second::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    pointer-events: none;
}
.hn-second::before {
    color: transparent;
    -webkit-text-stroke: 1px var(--cyan);
    transform: translate(-3px, 0);
    filter: drop-shadow(0 0 6px var(--cyan-glow));
    animation: glitch-x 4.5s steps(1) infinite;
    z-index: -1;
}
.hn-second::after {
    color: transparent;
    -webkit-text-stroke: 1px var(--magenta);
    transform: translate(3px, 0);
    filter: drop-shadow(0 0 6px var(--magenta-glow));
    animation: glitch-y 5.2s steps(1) infinite;
    z-index: -1;
}
@keyframes glitch-x {
    0%, 90%, 100% { transform: translate(-3px, 0); }
    91%           { transform: translate(-7px, -2px); }
    93%           { transform: translate(2px, 3px); }
    95%           { transform: translate(-5px, 1px); }
}
@keyframes glitch-y {
    0%, 92%, 100% { transform: translate(3px, 0); }
    93%           { transform: translate(7px, 2px); }
    95%           { transform: translate(-2px, -3px); }
    97%           { transform: translate(5px, -1px); }
}
[data-theme="light"] .hn-second::before, [data-theme="light"] .hn-second::after {
    filter: none; opacity: 0.45;
    animation: none;
}

.hn-cyr {
    display: block;
    font-family: var(--display);
    font-size: clamp(13px, 1.4vw, 18px);
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
    letter-spacing: 0.18em;
    margin-top: 14px;
    opacity: 0.85;
    font-weight: 400;
}
[data-theme="light"] .hn-cyr { text-shadow: none; }

/* ──────────  H E R O   P A Y L O A D  ────────── */
.hero-payload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: clamp(18px, 3vw, 36px);
    margin-bottom: clamp(32px, 5vw, 50px);
}
@media (max-width: 880px) {
    .hero-payload { grid-template-columns: 1fr; }
}

.hero-prose {
    font-family: var(--hud);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.6;
    color: var(--fg-soft);
    padding: 16px 18px;
    border: 1px solid var(--rule);
    background: var(--bg-card);
    position: relative;
}
.hero-prose::before {
    content: 'PROSE.txt';
    position: absolute;
    top: -10px; left: 12px;
    background: var(--bg);
    padding: 0 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
}
[data-theme="light"] .hero-prose::before { text-shadow: none; }
.prose-prompt {
    color: var(--magenta);
    font-family: var(--mono);
    font-weight: 700;
    margin-right: 6px;
    text-shadow: 0 0 6px var(--magenta-glow);
}
[data-theme="light"] .prose-prompt { text-shadow: none; }

.hud-panel {
    border: 1px solid var(--rule);
    background: var(--bg-card);
    padding: 0;
    align-self: start;
    position: relative;
}
.hud-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--rule);
    background: linear-gradient(90deg, var(--cyan-soft), transparent);
}
.hud-title {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
    font-weight: 600;
}
[data-theme="light"] .hud-title { text-shadow: none; }
.hud-tick {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 8px var(--lime);
    animation: pulse 2.4s ease-in-out infinite;
}
[data-theme="light"] .hud-tick { background: #2e7d32; box-shadow: none; }
.hud-list {
    list-style: none;
    padding: 6px 0;
}
.hud-list li {
    display: flex; align-items: baseline; gap: 12px;
    padding: 7px 14px;
    font-family: var(--mono);
    font-size: 12.5px;
    border-bottom: 1px dashed var(--rule-soft);
}
.hud-list li:last-child { border-bottom: none; }
.hud-k {
    font-size: 9.5px;
    letter-spacing: 0.2em;
    color: var(--magenta);
    text-shadow: 0 0 6px var(--magenta-glow);
    min-width: 50px;
    flex-shrink: 0;
    font-weight: 600;
}
[data-theme="light"] .hud-k { text-shadow: none; }
.hud-v { color: var(--fg-soft); }

/* ──────────  C O N T A C T  ────────── */
.contact-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    list-style: none;
    border: 1px solid var(--rule);
    background: var(--bg-card);
    scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.contact-strip li {
    display: flex; align-items: baseline; gap: 12px;
    padding: 14px 18px;
    border-right: 1px solid var(--rule-soft);
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.5;
}
.contact-strip li:last-child { border-right: none; }
@media (max-width: 600px) {
    .contact-strip li { border-right: none; border-bottom: 1px solid var(--rule-soft); }
    .contact-strip li:last-child { border-bottom: none; }
}
.cs-key {
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
    flex-shrink: 0;
    font-weight: 600;
    font-family: var(--mono);
}
[data-theme="light"] .cs-key { text-shadow: none; }
.contact-strip a {
    color: var(--fg);
    transition: color 0.2s, text-shadow 0.2s;
    word-break: break-all;
}
.contact-strip a:hover {
    color: var(--magenta);
    text-shadow: 0 0 8px var(--magenta-glow);
}
[data-theme="light"] .contact-strip a:hover { text-shadow: none; }

/* ═══════════════════════════════════════════════════════════
   L O G   ( S E C T I O N )
   ─────────────────────────────────────────────────────────── */
.log {
    margin: clamp(64px, 8vw, 110px) 0;
    scroll-margin-top: calc(var(--topbar-h) + 16px);
    position: relative;
}
.log-head {
    display: flex; align-items: baseline; gap: clamp(14px, 2.5vw, 24px);
    margin-bottom: clamp(28px, 4vw, 44px);
    flex-wrap: nowrap;
}
.log-num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--magenta);
    text-shadow: 0 0 8px var(--magenta-glow);
    padding: 4px 10px;
    border: 1px solid var(--magenta);
    flex-shrink: 0;
}
[data-theme="light"] .log-num { text-shadow: none; }
.log-rule {
    flex: 1;
    min-width: 30px;
    color: var(--cyan);
    opacity: 0.4;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 0 0 6px var(--cyan-glow);
    align-self: center;
}
[data-theme="light"] .log-rule { text-shadow: none; }
.log-title {
    font-family: var(--display);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--cyan);
    text-shadow: 0 0 16px var(--cyan-glow), 0 0 32px var(--cyan-glow);
    flex: 1 1 auto;
    min-width: 0;
}
[data-theme="light"] .log-title { text-shadow: none; }
.log-title-blink {
    color: var(--magenta);
    animation: blink 1.05s steps(1) infinite;
    text-shadow: 0 0 8px var(--magenta-glow);
}
[data-theme="light"] .log-title-blink { text-shadow: none; }

.log-body { padding: 0; }
.log-intro {
    font-family: var(--hud);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--fg-soft);
    margin-bottom: clamp(28px, 4vw, 40px);
    padding: 14px 18px;
    border-left: 2px solid var(--cyan);
    background: linear-gradient(90deg, var(--cyan-soft), transparent);
    max-width: 900px;
}

/* ──────────  R E C O R D  ( edu / work )  ────────── */
.rec {
    display: grid;
    grid-template-columns: 200px 1fr 100px;
    gap: clamp(16px, 3vw, 32px);
    align-items: start;
    padding: 22px 18px;
    border: 1px solid var(--rule);
    background: var(--bg-card);
    margin-bottom: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
}
.rec::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
    opacity: 0.4;
    transition: opacity 0.25s ease;
}
[data-theme="light"] .rec::before { box-shadow: none; }
.rec:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.10); }
.rec:hover::before { opacity: 1; }
[data-theme="light"] .rec:hover { box-shadow: 0 4px 20px rgba(0, 122, 140, 0.10); }

.rec-stamp {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--magenta);
    letter-spacing: 0.08em;
    text-shadow: 0 0 6px var(--magenta-glow);
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
}
[data-theme="light"] .rec-stamp { text-shadow: none; }
.rec-dash { color: var(--fg-faint); }

.rec-h {
    font-family: var(--display);
    font-size: clamp(15px, 1.6vw, 19px);
    color: var(--fg);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.rec-h-em { color: var(--cyan); text-shadow: 0 0 6px var(--cyan-glow); }
[data-theme="light"] .rec-h-em { text-shadow: none; }
.rec-d {
    font-family: var(--hud);
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.5;
}
.rec-text {
    margin-top: 10px;
    color: var(--fg-soft);
    line-height: 1.6;
    max-width: var(--measure);
}
.rec-text strong { color: var(--fg); }

.rec-tag {
    justify-self: end;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--lime);
    text-shadow: 0 0 6px var(--lime-glow);
    padding: 4px 8px;
    border: 1px solid var(--lime);
}
[data-theme="light"] .rec-tag { text-shadow: none; color: #2e7d32; border-color: #2e7d32; }
.rec-tag-done {
    color: var(--cyan);
    border-color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
}
[data-theme="light"] .rec-tag-done { text-shadow: none; color: var(--cyan); border-color: var(--cyan); }

/* ═══════════════════════════════════════════════════════════
   C A R D S E T   ( P R O J E C T )
   ─────────────────────────────────────────────────────────── */
.cardset {
    border: 1px solid var(--rule);
    background: var(--bg-card);
    padding: clamp(20px, 2.5vw, 28px);
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}
.cardset::before {
    content: '';
    position: absolute; left: 0; top: 0;
    width: clamp(40px, 6vw, 80px); height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 8px var(--cyan-glow);
}
[data-theme="light"] .cardset::before { box-shadow: none; }
.cardset:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
    transform: translateY(-2px);
}
[data-theme="light"] .cardset:hover { box-shadow: 0 6px 24px rgba(0, 122, 140, 0.10); transform: translateY(-2px); }

.card-stripe {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--magenta);
    text-shadow: 0 0 6px var(--magenta-glow);
    margin-bottom: 10px;
    display: inline-block;
}
[data-theme="light"] .card-stripe { text-shadow: none; }

.card-title-s {
    font-family: var(--mono);
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 600;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    line-height: 1.3;
    word-break: break-all;
}
[data-theme="light"] .card-title-s { text-shadow: none; }

.card-text {
    font-family: var(--hud);
    font-size: 14.5px;
    color: var(--fg-soft);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 640px;
}
.card-text em { color: var(--fg-muted); font-style: italic; }
.card-text strong { color: var(--fg); }
.card-text code {
    font-family: var(--mono);
    font-size: 0.9em;
    color: var(--magenta);
    background: var(--magenta-soft);
    padding: 1px 6px;
    border: 1px solid var(--rule-magenta);
}

/* ──────────  R A C K   ( G R I D )  ────────── */
.rack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 14px;
}

/* ──────────  F E A T U R E   C A R D  ────────── */
.cardset-feature {
    border: 1px solid var(--magenta);
    background:
        linear-gradient(135deg, rgba(255, 43, 214, 0.08), transparent 40%),
        linear-gradient(315deg, rgba(0, 240, 255, 0.08), transparent 40%),
        var(--bg-card);
    box-shadow:
        0 0 0 1px var(--rule-magenta),
        0 0 32px rgba(255, 43, 214, 0.10),
        inset 0 0 32px rgba(0, 240, 255, 0.04);
    padding: clamp(28px, 3.5vw, 44px);
    position: relative;
}
.cardset-feature::before { display: none; }
[data-theme="light"] .cardset-feature { box-shadow: 0 0 0 1px var(--rule-magenta), 0 6px 24px rgba(192, 0, 128, 0.10); }

/* Corner decorations */
.cardset-feature::after {
    content: '';
    position: absolute;
    inset: 8px;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--cyan), var(--cyan)),
        linear-gradient(to bottom, var(--cyan), var(--cyan)),
        linear-gradient(to right, var(--magenta), var(--magenta)),
        linear-gradient(to bottom, var(--magenta), var(--magenta));
    background-size: 24px 1px, 1px 24px, 24px 1px, 1px 24px;
    background-position: top left, top left, bottom right, bottom right;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.card-banner {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px 18px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px dashed var(--rule);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.banner-flag {
    color: var(--bg);
    background: var(--magenta);
    padding: 5px 12px;
    font-weight: 700;
    box-shadow: 0 0 18px var(--magenta-glow), inset 0 0 0 1px rgba(255,255,255,0.15);
}
[data-theme="light"] .banner-flag { box-shadow: none; }
.banner-arc {
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
    font-weight: 500;
}
[data-theme="light"] .banner-arc { text-shadow: none; }
.banner-pulse {
    margin-left: auto;
    width: 8px; height: 8px;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
    animation: pulse-cyan 2s ease-in-out infinite;
    border-radius: 50%;
}

.card-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: 0.01em;
    color: var(--fg);
    margin-bottom: clamp(20px, 2.5vw, 28px);
}
.ct-line {
    display: block;
    color: var(--cyan);
    text-shadow: 0 0 18px var(--cyan-glow), 0 0 36px var(--cyan-glow);
}
[data-theme="light"] .ct-line { text-shadow: none; }
.ct-line-2 {
    color: var(--magenta);
    text-shadow: 0 0 18px var(--magenta-glow), 0 0 36px var(--magenta-glow);
    padding-left: clamp(20px, 3vw, 50px);
}
[data-theme="light"] .ct-line-2 { text-shadow: none; }
.ct-tag {
    display: block;
    font-family: var(--mono);
    font-size: clamp(13px, 1.3vw, 16px);
    color: var(--fg-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 0 8px clamp(20px, 3vw, 50px);
}

.card-quote {
    font-family: var(--hud);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.5;
    color: var(--fg);
    margin: clamp(18px, 2.5vw, 26px) 0 clamp(24px, 3vw, 32px);
    padding: 14px 18px 14px 24px;
    border-left: 3px solid var(--magenta);
    background: var(--magenta-soft);
    position: relative;
    box-shadow: inset 0 0 24px rgba(255, 43, 214, 0.04);
    max-width: 900px;
}
.cq-bracket {
    position: absolute;
    left: 8px; top: 50%; transform: translateY(-50%);
    color: var(--magenta);
    font-family: var(--mono);
    font-weight: 700;
    text-shadow: 0 0 6px var(--magenta-glow);
}
[data-theme="light"] .cq-bracket { text-shadow: none; }

/* ──────────  H U D   G R I D  ────────── */
.hud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    margin: clamp(20px, 3vw, 32px) 0 clamp(24px, 3vw, 32px);
    border: 1px solid var(--rule);
    background: var(--bg-deep);
    position: relative;
}
.hud-cell {
    padding: 16px clamp(12px, 2vw, 20px);
    border-right: 1px solid var(--rule-soft);
    position: relative;
}
.hud-cell:last-child { border-right: none; }
.hud-cell-key {
    display: block;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
    font-weight: 600;
    margin-bottom: 8px;
}
[data-theme="light"] .hud-cell-key { text-shadow: none; }
.hud-cell-num {
    display: block;
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    color: var(--cyan);
    text-shadow: 0 0 18px var(--cyan-glow), 0 0 36px var(--cyan-glow);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
[data-theme="light"] .hud-cell-num { text-shadow: none; }
.hud-cell-magenta .hud-cell-key {
    color: var(--magenta);
    text-shadow: 0 0 6px var(--magenta-glow);
}
[data-theme="light"] .hud-cell-magenta .hud-cell-key { text-shadow: none; }
.hud-cell-magenta .hud-cell-num {
    color: var(--magenta);
    text-shadow: 0 0 18px var(--magenta-glow), 0 0 36px var(--magenta-glow);
}
[data-theme="light"] .hud-cell-magenta .hud-cell-num { text-shadow: none; }
.hud-cell-d {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    line-height: 1.4;
}

.card-prose { max-width: var(--measure); margin-bottom: clamp(18px, 2.5vw, 24px); }
.card-prose p {
    color: var(--fg-soft);
    margin-bottom: 14px;
    line-height: 1.65;
    font-family: var(--hud);
    font-size: 15.5px;
}
.card-prose strong { color: var(--fg); }
.card-prose em { color: var(--cyan); font-style: normal; }
[data-theme="light"] .card-prose em { color: var(--cyan); }

/* ──────────  C H I P S  ────────── */
.chips {
    display: flex; flex-wrap: wrap;
    gap: 5px 6px;
    list-style: none;
    margin: 0 0 clamp(16px, 2vw, 22px);
}
.chips li {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--fg-muted);
    padding: 3px 8px;
    border: 1px solid var(--rule);
    background: rgba(0, 240, 255, 0.02);
    transition: all 0.2s ease;
}
.chips li:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--cyan-soft);
    box-shadow: 0 0 8px var(--cyan-glow);
}
[data-theme="light"] .chips li:hover { box-shadow: none; }
.chips li:nth-child(3n+2):hover {
    color: var(--magenta);
    border-color: var(--magenta);
    background: var(--magenta-soft);
    box-shadow: 0 0 8px var(--magenta-glow);
}
[data-theme="light"] .chips li:nth-child(3n+2):hover { box-shadow: none; }

/* ──────────  P O R T   ( link button )  ────────── */
.links {
    display: flex; flex-wrap: wrap;
    gap: 6px 8px;
}
.port {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.05em;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    background: rgba(0, 240, 255, 0.02);
    text-shadow: 0 0 6px var(--cyan-glow);
    transition: all 0.22s ease;
    position: relative;
}
[data-theme="light"] .port { text-shadow: none; }
.port-pre { color: var(--magenta); font-weight: 700; opacity: 0.85; }
.port-name { color: inherit; }
.port-arr { color: var(--magenta); transition: transform 0.25s ease; }
.port:hover {
    color: var(--bg);
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan-glow);
    text-shadow: none;
}
[data-theme="light"] .port:hover { box-shadow: none; color: var(--bg); }
.port:hover .port-pre { color: var(--bg); }
.port:hover .port-arr { color: var(--bg); transform: translateX(3px) translateY(-3px); }

/* ═══════════════════════════════════════════════════════════
   T E C H   S T A C K
   ─────────────────────────────────────────────────────────── */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.stack-mod {
    border: 1px solid var(--rule);
    background: var(--bg-card);
    padding: 14px 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.stack-mod:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.08);
}
[data-theme="light"] .stack-mod:hover { box-shadow: 0 4px 14px rgba(0, 122, 140, 0.08); }
.stack-mod-h {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    color: var(--magenta);
    text-shadow: 0 0 6px var(--magenta-glow);
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
[data-theme="light"] .stack-mod-h { text-shadow: none; }
.stack-mod .chips { margin: 0; }

/* ═══════════════════════════════════════════════════════════
   M E T A
   ─────────────────────────────────────────────────────────── */
.etc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.etc-block {
    border: 1px solid var(--rule);
    background: var(--bg-card);
    padding: 14px 18px;
}
.etc-h {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
    font-weight: 600;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
[data-theme="light"] .etc-h { text-shadow: none; }
.etc-block p {
    color: var(--fg-soft);
    margin-bottom: 5px;
    font-family: var(--hud);
    font-size: 14.5px;
    line-height: 1.5;
}
.etc-block strong { color: var(--cyan); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
[data-theme="light"] .etc-block strong { color: var(--cyan); }
.etc-block .muted { color: var(--fg-faint); font-family: var(--mono); font-size: 0.85em; }

/* ═══════════════════════════════════════════════════════════
   C O L O P H O N
   ─────────────────────────────────────────────────────────── */
.colophon {
    margin-top: clamp(70px, 9vw, 110px);
    padding-top: clamp(20px, 3vw, 28px);
    border-top: 1px solid var(--rule);
    text-align: center;
}
.colophon-ascii {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
    line-height: 1;
    margin-bottom: 12px;
    overflow-x: auto;
    white-space: pre;
    opacity: 0.7;
}
[data-theme="light"] .colophon-ascii { text-shadow: none; }
.colophon-line {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-muted);
    letter-spacing: 0.06em;
    line-height: 1.7;
}
.colophon-line .muted { color: var(--magenta); text-shadow: 0 0 4px var(--magenta-glow); }
[data-theme="light"] .colophon-line .muted { text-shadow: none; }
.colophon-line .dot { color: var(--fg-faint); margin: 0 6px; }

/* ═══════════════════════════════════════════════════════════
   A N I M A T I O N S
   ─────────────────────────────────────────────────────────── */
@keyframes ink-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
body.js .hero,
body.js .log { opacity: 0; }
body.js .hero.in,
body.js .log.in {
    animation: ink-in 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
body.js .log .rec,
body.js .log .cardset { opacity: 0; }
body.js .log.in .rec,
body.js .log.in .cardset {
    animation: ink-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
body.js .log.in .cardset:nth-of-type(2) { animation-delay: 0.05s; }
body.js .log.in .cardset:nth-of-type(3) { animation-delay: 0.10s; }
body.js .log.in .cardset:nth-of-type(4) { animation-delay: 0.15s; }
body.js .log.in .cardset:nth-of-type(5) { animation-delay: 0.20s; }
body.js .log.in .cardset:nth-of-type(6) { animation-delay: 0.25s; }
body.js .log.in .cardset:nth-of-type(7) { animation-delay: 0.30s; }
body.js .log.in .cardset:nth-of-type(8) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hn-second::before, .hn-second::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   R E S P O N S I V E
   ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .rec { grid-template-columns: 160px 1fr 80px; }
}

@media (max-width: 880px) {
    .sys-actions .sys-btn:not(.sys-btn-primary) { display: none; }
    .sys-status { display: none; }
    .rec { grid-template-columns: 1fr; }
    .rec-tag { justify-self: start; margin-top: 6px; }
}

@media (max-width: 640px) {
    :root { --topbar-h: 50px; }
    .sys-id { font-size: 14px; padding: 0 12px; }
    .sys-nav a { padding: 0 9px; font-size: 10px; letter-spacing: 0.12em; }
    .sys-nav a .cmd-label { display: none; }
    .sys-actions { padding: 0 8px; }
    .sys-btn { padding: 5px 8px; font-size: 9.5px; }

    .terminal { padding-left: 14px; padding-right: 14px; }

    .ascii-mark { font-size: 8.5px; }

    .hero-meta { grid-template-columns: 1fr 1fr; }
    .meta-cell { border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
    .meta-cell:nth-child(2n) { border-right: none; }
    .meta-cell:nth-last-child(-n+2):not(.meta-status) { border-bottom: none; }
    .meta-status { grid-column: span 2; border-right: none; }

    .hn-prefix { font-size: 11px; }
    .hn-first { font-size: clamp(34px, 11vw, 52px); }
    .hn-second { font-size: clamp(32px, 10vw, 44px); }

    .log-head { flex-wrap: wrap; }
    .log-rule { display: none; }
    .log-title { font-size: clamp(18px, 5vw, 26px); }

    .ct-line-2, .ct-tag { padding-left: 12px; }
    .card-title { font-size: clamp(22px, 7vw, 30px); }

    .hud-grid { grid-template-columns: 1fr 1fr; }
    .hud-cell:nth-child(2n) { border-right: none; }
    .hud-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }

    .hud-list li { padding: 6px 10px; font-size: 11.5px; }
    .hud-k { min-width: 38px; }

    .rack { grid-template-columns: 1fr; }
}

@media (min-width: 1280px) {
    .terminal { padding-left: clamp(40px, 5vw, 80px); padding-right: clamp(40px, 5vw, 80px); }
}

/* ═══════════════════════════════════════════════════════════
   P R I N T
   ─────────────────────────────────────────────────────────── */
@media print {
    .sysbar, .grain, .vignette, .grid-bg, body::after, .read-progress { display: none; }
    body { color: #000; background: #fff; }
    .terminal { padding: 14mm; max-width: none; }
    a { color: #000; }
}
