:root {
  --bg: #09070f;
  --bg-2: #0f0b18;
  --panel: rgba(15, 12, 24, 0.84);
  --panel-2: rgba(22, 16, 35, 0.82);
  --border: rgba(190, 150, 255, 0.16);
  --border-strong: rgba(218, 175, 255, 0.28);
  --text: #f3eef8;
  --muted: #aba0b8;
  --pink: #ed9ec9;
  --purple: #9b7cff;
  --cyan: #93d9ff;
  --green: #9fe7b7;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 12%, rgba(122, 70, 180, .18), transparent 24%),
    radial-gradient(circle at 20% 60%, rgba(74, 104, 180, .1), transparent 25%),
    var(--bg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.ambient { position: fixed; inset: auto; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: -2; opacity: .24; }
.ambient-a { top: -8rem; right: 10%; background: #9b7cff; }
.ambient-b { bottom: -9rem; left: 8%; background: #e58bc1; }
.stars { position: fixed; inset: 0; pointer-events: none; opacity: .14; background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 110px 110px; z-index: -1; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 250px;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: rgba(7, 5, 11, .84);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(24px);
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.avatar-wrap { position: relative; }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #3b2358, #1a1028); border: 1px solid var(--border-strong); box-shadow: 0 0 30px rgba(155,124,255,.18); font-size: 25px; }
.online-dot { position: absolute; width: 9px; height: 9px; right: -1px; bottom: -1px; border-radius: 999px; background: #86e0aa; border: 2px solid #09070f; }
.brand-name { font-weight: 700; letter-spacing: .02em; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav { display: grid; gap: 7px; }
.nav-link { display: flex; gap: 11px; align-items: center; padding: 10px 12px; border-radius: 11px; color: var(--muted); transition: .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(155,124,255,.12); border: 1px solid rgba(155,124,255,.18); }
.nav-link { border: 1px solid transparent; }

.mini-terminal, .terminal-card { font-family: "DM Mono", monospace; }
.side-terminal { margin-top: 4px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--border); }
.terminal-top { display: flex; gap: 5px; margin-bottom: 11px; }
.terminal-top span { width: 7px; height: 7px; border-radius: 50%; background: #5f5567; }
.mono { font-family: "DM Mono", monospace; }
.dim { color: var(--muted); font-size: 11px; line-height: 1.8; }
.dim strong { color: var(--pink); }
.sidebar-footer { margin-top: auto; }
.braincell-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--pink)); box-shadow: 0 0 18px rgba(237,158,201,.35); }
.tiny { color: #7f738c; font-size: 11px; margin-top: 7px; }

.page { margin-left: 250px; padding: 30px; max-width: 1600px; }
.panel { background: linear-gradient(180deg, rgba(21,16,33,.86), rgba(11,9,18,.88)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.hero { min-height: 510px; display: grid; grid-template-columns: 1.02fr 1fr; overflow: hidden; position: relative; }
.hero-copy { padding: 54px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: .16em; color: var(--pink); text-transform: uppercase; }
h1 { font-size: clamp(3rem, 6vw, 5.8rem); line-height: .95; letter-spacing: -.055em; margin: 18px 0 20px; }
h1 span { color: var(--pink); }
.hero-lede { font-size: 18px; line-height: 1.65; color: #d1c8d8; max-width: 620px; margin: 0; }
.chips, .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip, .tags span { border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted); border-radius: 999px; padding: 7px 11px; font-size: 12px; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 15px; border-radius: 11px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 13px; }
.button.primary { background: linear-gradient(135deg, rgba(155,124,255,.26), rgba(237,158,201,.2)); }
.button.ghost { background: rgba(255,255,255,.03); color: var(--muted); }
.hero-art { position: relative; min-height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.8); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,10,20,1) 0%, rgba(13,10,20,.35) 18%, rgba(13,10,20,.05) 60%, rgba(13,10,20,.35) 100%); }
.hero-glass { position: absolute; right: 18px; bottom: 18px; z-index: 2; padding: 9px 12px; border-radius: 10px; background: rgba(8,6,12,.64); border: 1px solid var(--border); font-family: "DM Mono", monospace; color: var(--muted); font-size: 11px; backdrop-filter: blur(10px); }
.hero-glass strong { color: var(--green); }

.status-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 24px; }
.status-strip article { padding: 13px 15px; border: 1px solid var(--border); border-radius: 14px; background: rgba(13,10,20,.7); display: flex; gap: 10px; align-items: center; }
.status-icon { font-size: 20px; }
.status-strip strong { display: block; font-size: 12px; }
.status-strip small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }

.grid { display: grid; gap: 12px; margin-bottom: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.about-card, .currently-card { padding: 28px; }
h2 { margin: 10px 0 12px; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.about-card p { color: var(--muted); line-height: 1.72; max-width: 64ch; }
.quote { margin-top: 20px; padding: 16px; border-left: 2px solid var(--pink); background: rgba(237,158,201,.05); color: #ddd3e1; }
.quote span { display: block; color: var(--muted); margin-top: 6px; font-size: 12px; }
.currently-list { display: grid; gap: 13px; margin-top: 18px; }
.currently-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.currently-list span { font-size: 18px; }
.currently-list strong { display: block; }
.currently-list small { color: var(--muted); line-height: 1.5; display: block; margin-top: 3px; }

section.panel { padding: 28px; margin-bottom: 24px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; }
.text-link { color: var(--pink); font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.project-card { padding: 22px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.025); min-height: 250px; display: flex; flex-direction: column; }
.project-top { display: flex; align-items: center; justify-content: space-between; }
.project-icon { font-size: 27px; }
.project-tag { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.project-card h3 { font-size: 22px; margin: 18px 0 8px; }
.project-card p { color: var(--muted); line-height: 1.62; font-size: 14px; margin: 0; }
.project-card .tags { margin-top: auto; }
.project-purple { box-shadow: inset 0 1px 0 rgba(155,124,255,.24); }
.project-green { box-shadow: inset 0 1px 0 rgba(159,231,183,.18); }
.project-blue { box-shadow: inset 0 1px 0 rgba(147,217,255,.18); }
.project-chaos { box-shadow: inset 0 1px 0 rgba(237,158,201,.22); background: linear-gradient(145deg, rgba(237,158,201,.05), rgba(155,124,255,.025)); }
.footer-handle { color: #7f738c; }

.tiny-card { padding: 24px; min-height: 250px; }
.plain-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 13px; color: #d7cfdc; }
.mono-list { font-family: "DM Mono", monospace; font-size: 12px; }
.mono-list span { color: var(--pink); margin-right: 8px; }
.terminal-card { background: #07070a; overflow: hidden; }
.terminal-text { margin: 0; color: #b8ceb4; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.terminal-text span { color: #f2a6d0; }
.interactive-terminal { padding: 24px; }
.terminal-output { min-height: 205px; max-height: 300px; overflow-y: auto; scrollbar-width: thin; color: #b8ceb4; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.terminal-output .prompt, .terminal-input .prompt { color: #f2a6d0; }
.terminal-output .cmd { color: #f2a6d0; }
.dim-terminal { color: #756b80; }
.dim-terminal strong { color: #b8ceb4; }
.terminal-input { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.terminal-input input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0; background: transparent; color: #d8e8d4; font: 12px/1.7 "DM Mono", monospace; }
.terminal-input input::placeholder { color: #4f554d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer-panel { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.footer-panel p { color: var(--muted); margin: 0; }
.footer-links { display: flex; gap: 14px; color: var(--muted); text-align: right; font-size: 12px; }
.footer-links a:hover { color: var(--text); }
.site-footer { padding: 0 4px 20px; color: #756b80; font-size: 11px; text-align: right; }

@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .page { margin-left: 220px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .status-strip, .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); }
  .brand-sub, .side-terminal, .sidebar-footer { display: none; }
  .nav { display: flex; overflow-x: auto; }
  .nav-link { flex: 0 0 auto; }
  .page { margin-left: 0; padding: 14px; }
  .hero-copy { padding: 32px 24px; }
  .grid-2, .grid-3, .status-strip, .project-grid { grid-template-columns: 1fr; }
  .footer-panel { align-items: start; flex-direction: column; }
  .section-heading { align-items: start; flex-direction: column; }
}


/* CatByte Perimeter */
.perimeter-card{overflow:hidden}
.status-live{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(145,225,185,.22);border-radius:999px;color:#9be0bb;font-size:12px}
.perimeter-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch}
.perimeter-terminal{margin:0;min-height:100%;display:flex;flex-direction:column}
@media (max-width:830px){.perimeter-grid{grid-template-columns:1fr}}
.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.5;
}

.terminal-output > div {
  margin: 0;
  padding: 0;
}

.terminal-output .terminal-command {
  margin-top: 0.9rem;
}

.terminal-output .terminal-command:first-child {
  margin-top: 0;
}


.terminal-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}.terminal-card {
  background: #07070a;
  overflow: hidden;
  padding: 24px;
  min-width: 0;
}

.terminal-top {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

.terminal-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f5567;
}

.terminal-output {
  color: #b8ceb4;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.terminal-output > div {
  margin: 0;
  padding: 0;
}

.terminal-output .terminal-command {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 14px;
}

.terminal-output .terminal-command:first-child {
  margin-top: 0;
}

.terminal-output .prompt,
.terminal-input .prompt {
  color: #f2a6d0;
  flex: 0 0 auto;
}

.terminal-output .cmd {
  color: #f2a6d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dim-terminal {
  margin-top: 3px !important;
  color: #756b80;
}

.dim-terminal strong {
  color: #b8ceb4;
}

.terminal-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.terminal-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #d8e8d4;
  font: 12px/1.55 "DM Mono", monospace;
}

.terminal-input input::placeholder {
  color: #4f554d;
}
.footer-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 14px;
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}
.currently-list > .currently-listening {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;

    width: 100%;
    box-sizing: border-box;

    padding: 0;

    color: inherit;
    text-decoration: none;

    border-radius: 12px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.currently-list > .currently-listening:hover {
    background: rgba(255, 255, 255, 0.045);
    transform: translateX(3px);
}

.currently-list > .currently-listening > span:first-child {
    font-size: 18px;
}

.currently-list > .currently-listening > div {
    min-width: 0;
}

.currently-list > .currently-listening strong {
    display: block;
}

.currently-list > .currently-listening small {
    display: block;

    margin-top: 3px;

    color: var(--muted);
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.currently-arrow {
    margin-left: 1rem;

    font-size: 1.1rem !important;
    opacity: 0.3;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.currently-list > .currently-listening:hover .currently-arrow {
    opacity: 0.8;
    transform: translateX(3px);
}
/* Arachne perimeter terminal link */

.perimeter-terminal {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.perimeter-terminal:hover {
  transform: translateY(-12px);
  border-color: rgba(242, 166, 208, 0.22);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.perimeter-terminal:focus-visible {
  outline: 2px solid #f2a6d0;
  outline-offset: 3px;
}
/* Lift the perimeter's right-hand side slightly */
.perimeter-card .status-live {
  transform: translateY(-25px);
}

.perimeter-card .perimeter-terminal {
  transform: translateY(-27px);
}