:root {
  --bg: #0a0a0d;
  --bg-raised: #111116;
  --bg-raised-2: #16161c;
  --border: #1f1f27;
  --text: #e4e4ea;
  --text-dim: #8a8a97;
  --text-faint: #55555f;
  --brand: #ff9f43;
  --accent: #ff9f43;
  --accent-2: #ff6b6b;
  --accent-dim: rgba(255, 159, 67, 0.12);
  --good: #4ade80;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mx: 50%;
  --my: 30%;
}

/* Per-project theme overrides — sidebar always stays brand-orange,
   only the main content area re-themes per project. */
.content[data-theme="pvp"] {
  --accent: #4ade80;
  --accent-2: #22d3ee;
  --accent-dim: rgba(74, 222, 128, 0.12);
}

.content[data-theme="noxel"] {
  --accent: #a78bfa;
  --accent-2: #f472b6;
  --accent-dim: rgba(167, 139, 250, 0.14);
}

.content[data-theme="nitro"] {
  --accent: #22d3ee;
  --accent-2: #60a5fa;
  --accent-dim: rgba(34, 211, 238, 0.14);
}

.content[data-theme="gtweak"] {
  --accent: #f43f5e;
  --accent-2: #fb923c;
  --accent-dim: rgba(244, 63, 94, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #0a0a0d;
}

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

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(500px circle at var(--mx) var(--my), rgba(255, 159, 67, 0.08), transparent 60%),
    radial-gradient(600px circle at 15% 20%, rgba(255, 159, 67, 0.06), transparent 55%),
    radial-gradient(500px circle at 85% 70%, rgba(255, 107, 107, 0.05), transparent 55%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.4s ease;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(228, 228, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 228, 234, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: grid-drift 40s linear infinite;
  mask-image: radial-gradient(1100px circle at 20% 10%, #000 0%, transparent 75%);
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 220px 440px, 220px 440px; }
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Sidebar */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border), 0 8px 20px -8px rgba(255, 159, 67, 0.5);
  flex-shrink: 0;
}

.identity h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.identity .handle {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 6px;
}

.identity .role {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 220px;
}

.side-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.side-nav .dash {
  width: 24px;
  height: 1px;
  background: var(--text-faint);
  transition: width 0.2s ease, background 0.2s ease;
}

.side-nav a:hover {
  color: var(--text);
}

.side-nav a:hover .dash {
  background: var(--text);
}

.side-nav a.active {
  color: var(--accent);
}

.side-nav a.active .dash {
  width: 40px;
  background: var(--accent);
}

.sidebar-footer {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discord-chip,
.github-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.discord-chip:hover,
.github-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Content */

.content {
  padding: 64px 48px 120px;
  max-width: 720px;
  min-width: 0;
}

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
}

.section p {
  color: var(--text-dim);
  max-width: 60ch;
}

.section p strong {
  color: var(--text);
  font-weight: 600;
}

.section p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section p a:hover {
  color: #ffb35e;
}

.section-intro {
  margin-bottom: 24px;
}

.sub-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.detail-list {
  color: var(--text-dim);
  font-size: 0.94rem;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-list-numbered {
  padding-left: 22px;
}

.detail-list strong {
  color: var(--text);
}

/* Hero (home page) */

.hero {
  padding-top: 24px;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.hero-name {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-tagline {
  color: var(--text-dim);
  max-width: 56ch;
  font-size: 1.02rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Tilt (mouse-reactive hover) */

.tilt-card {
  transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--lift, 0));
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.tilt-card:hover {
  --lift: -3px;
}

/* Project hub grid (home page) */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hub-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
}

.hub-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--tile-accent-dim, transparent), transparent 55%);
  pointer-events: none;
}

.hub-tile:hover {
  border-color: var(--tile-accent, var(--brand));
  box-shadow: 0 16px 40px -20px var(--tile-accent, var(--brand));
}

.hub-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-accent-dim, var(--accent-dim));
  color: var(--tile-accent, var(--accent));
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
}

.hub-title {
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tile-accent, var(--accent));
  background: var(--tile-accent-dim, var(--accent-dim));
  padding: 2px 8px;
  border-radius: 999px;
}

.hub-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hub-arrow {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--tile-accent, var(--accent));
}

/* Browser-frame preview mockup (external project pages) */

.browser-mock {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0 8px;
  background: var(--bg-raised);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-raised-2);
  border-bottom: 1px solid var(--border);
}

.browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.browser-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}

.browser-body {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background:
    radial-gradient(420px circle at 30% 20%, var(--accent-dim), transparent 60%),
    radial-gradient(360px circle at 80% 80%, var(--accent-dim), transparent 55%);
}

.browser-wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.browser-tagline {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 40ch;
}

/* GTweak app-frame mockup */

.gt-dashboard {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
  background: rgba(255,255,255,0.03);
}

.gt-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid var(--border);
}

.gt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-block;
}

.gt-appname {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.gt-body {
  padding: 20px 24px;
}

.gt-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.gt-stat-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  width: 44px;
  flex-shrink: 0;
}

.gt-stat-val {
  color: var(--text);
}

.gt-live {
  color: var(--accent);
  font-weight: 600;
}

.gt-muted {
  color: var(--text-dim);
}

.gt-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.gt-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.7;
}

.gt-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.gt-btn {
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #0a0a0d;
  font-weight: 600;
  font-family: var(--sans);
}

.gt-btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
  font-weight: 500;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  font-family: var(--sans);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0d;
}

.btn-primary:hover {
  background: #ffb35e;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Link grid (home page quick links) */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.link-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.link-desc {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* Project status + tags (shared) */

.project-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 9px;
  border-radius: 999px;
}

.project-status.status-paused {
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.06);
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
}

.notice-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  margin-top: 6px;
}

.notice p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

.notice strong {
  color: var(--text);
}

/* How It Works */

.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 50ch;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.project-tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Technology badges */

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 32px;
}

.tech-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg, var(--bg-raised));
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tech-badge:hover {
  transform: translateY(-4px);
  border-color: var(--badge-color, var(--accent));
  box-shadow: 0 12px 24px -12px var(--badge-color, var(--accent));
}

.tech-badge svg {
  width: 28px;
  height: 28px;
}

/* Skills */

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.skill-value {
  color: var(--text);
  font-size: 0.95rem;
}

/* Project cards (projects.html) */

.project-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .project-cards {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: var(--tile-accent, var(--accent));
  box-shadow: 0 16px 40px -22px var(--tile-accent, var(--accent));
}

.project-card .card-arrow {
  color: var(--tile-accent, var(--accent));
}

.project-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.project-card-head h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.project-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 56ch;
}

.card-arrow {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

/* Project detail pages */

.detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Code block */

.code-caption {
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.code-file {
  font-family: var(--mono);
  color: var(--text);
}

.code-block {
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* When .code-block wraps a header + .code-pre (project-gtweak.html),
   the padding/scroll moves to .code-pre so the header can span full width. */
.code-block:has(.code-header) {
  padding: 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 999px;
}

.code-header .code-file {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.code-pre {
  margin: 0;
  padding: 18px 22px;
  overflow-x: auto;
}

.tok-kw { color: #ff9f43; }
.tok-type { color: #7ec8e3; }
.tok-str { color: #a3d977; }
.tok-com { color: var(--text-faint); font-style: italic; }
.tok-fn { color: #e4e4ea; }
.tok-an { color: var(--text-faint); }

/* Live status badge */

.stat-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.stat-heading-row .sub-heading {
  margin: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}

.live-badge[data-state="running"] {
  color: var(--good);
  border-color: rgba(74, 222, 128, 0.35);
}

.live-badge[data-state="running"] .live-dot {
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse-dot 1.6s infinite;
}

.live-badge[data-state="idle"] .live-dot {
  background: var(--text-faint);
}

.live-badge[data-state="error"] {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}

.live-badge[data-state="error"] .live-dot {
  background: #f87171;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Stat cards (training stats) */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.stat-card-primary {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--accent-dim), var(--bg-raised) 60%);
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
}

.stat-card-primary .stat-value {
  color: var(--accent);
}

.stat-updated {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* IP / copy panel */

.ip-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}

.ip-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ip-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.ip-value {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

/* Footer */

.site-footer {
  padding-top: 48px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* Responsive */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 40px 24px 0;
  }

  .sidebar-inner {
    height: auto;
    gap: 32px;
  }

  .side-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .content {
    padding: 40px 24px 80px;
    max-width: none;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ip-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .tilt-card {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .gradient-text,
  .live-badge[data-state="running"] .live-dot {
    animation: none;
  }

  .tilt-card {
    transform: none !important;
  }
}
