/* ============================================
   Caleb "Xebb" Wilfong — Portfolio
   Design: Dark-first, warm amber accent, bold typography
   Fonts: Clash Display (display), Satoshi (body) — Fontshare
   ============================================ */

/* --- Design Tokens --- */
:root,
[data-theme='light'] {
  /* Surfaces — warm off-white */
  --color-bg: #f8f6f1;
  --color-surface: #fffefb;
  --color-surface-2: #f3f0ea;
  --color-surface-offset: #ede9e1;
  --color-divider: #e2ddd3;
  --color-border: #d8d3c8;

  /* Text */
  --color-text: #1a1815;
  --color-text-muted: #6b6760;
  --color-text-faint: #a8a399;
  --color-text-inverse: #f8f6f1;

  /* Accent — warm amber */
  --color-accent: #d97328;
  --color-accent-hover: #b85e1c;
  --color-accent-soft: #f4e4d1;
  --color-accent-glow: rgba(217, 115, 40, 0.12);

  /* Secondary accent — deep teal (nod to retro) */
  --color-teal: #0d6b6e;
  --color-teal-soft: #d0e0de;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 24, 21, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 24, 21, 0.08);
  --shadow-lg: 0 20px 48px rgba(26, 24, 21, 0.12);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-default: 1100px;
  --content-narrow: 720px;

  /* Fonts */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #14130f;
  --color-surface: #1c1a16;
  --color-surface-2: #221f1a;
  --color-surface-offset: #28241e;
  --color-divider: #2a2620;
  --color-border: #35302a;

  --color-text: #e8e4dc;
  --color-text-muted: #8a857c;
  --color-text-faint: #5c574f;
  --color-text-inverse: #14130f;

  --color-accent: #f0913e;
  --color-accent-hover: #f7a85f;
  --color-accent-soft: #2e2519;
  --color-accent-glow: rgba(240, 145, 62, 0.15);

  --color-teal: #4fb0b3;
  --color-teal-soft: #1a2e2e;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a, button {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.1;
}

p, li {
  text-wrap: pretty;
  max-width: 72ch;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin: 0 auto;
  padding-inline: var(--space-8);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-4) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 640px) {
  .nav {
    gap: var(--space-5);
  }
  .nav-link {
    font-size: var(--text-xs);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  line-height: 1.05;
}

.hero-nick {
  color: var(--color-accent);
  font-weight: 500;
  padding-inline: 0.08em;
}

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.social-link svg {
  flex-shrink: 0;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--color-accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

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

/* --- Section shared --- */
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
}

/* XEBB Token v2 mini-preview */
.screen-xebb2-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(232, 131, 58, 0.08);
  border: 1px solid rgba(232, 131, 58, 0.25);
  border-radius: var(--radius-full);
}

.xebb2-new {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e8833a;
  padding: 1px var(--space-2);
  background: rgba(232, 131, 58, 0.15);
  border-radius: var(--radius-sm);
}

.xebb2-feature {
  font-size: var(--text-xs);
  font-weight: 500;
  color: #d8dce4;
}

/* XEBB Token v1 mini-preview (kept for reference) */
.screen-token-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: monospace;
}

.token-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.token-address {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.screen-supply {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.supply-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.supply-label {
  color: var(--color-text-muted);
}

.supply-value {
  font-weight: 600;
  color: var(--color-text);
}

.supply-chain {
  color: var(--color-teal);
}

.supply-accent {
  color: var(--color-accent);
}

.screen-tiers {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--color-border);
}

.tier {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.tier:nth-child(1) { border-color: var(--color-accent); color: var(--color-accent); }
.tier:nth-child(4) { border-color: var(--color-teal); color: var(--color-teal); }

/* Crucible of Star & Sea mini-preview (dark) */
.project-screen-dark {
  background: #0a0d14;
  border-color: #1a1f2e;
}

.screen-bar-dark {
  background: #0e1220;
  border-bottom-color: #1a1f2e;
  color: #6b7a8d;
}

.screen-body-dark {
  min-height: 200px;
  gap: var(--space-4);
}

.screen-crucible-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.crucible-vol {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #c9a84c;
}

.crucible-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #d8dce4;
  line-height: 1.2;
}

.crucible-name em {
  color: #c9a84c;
  font-style: italic;
}

.screen-pillars {
  display: flex;
  justify-content: space-around;
  gap: var(--space-2);
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pillar-glyph {
  font-size: 1.1rem;
  color: #c9a84c;
  line-height: 1;
}

.pillar:nth-child(2) .pillar-glyph { color: #5fbfb0; }
.pillar:nth-child(3) .pillar-glyph { color: #8e6dc7; }

.pillar-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #d8dce4;
}

.pillar-sub {
  font-size: 10px;
  color: #6b7a8d;
  text-align: center;
}

.screen-codex {
  text-align: center;
  padding-top: var(--space-2);
  border-top: 1px solid #1a1f2e;
}

.codex-label {
  font-size: 10px;
  font-family: monospace;
  color: #c9a84c;
  letter-spacing: 0.05em;
}

/* Dial-Up Degens mini-preview (terminal) */
.screen-terminal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: monospace;
  font-size: 11px;
}

.term-line {
  color: #7a8a7a;
  line-height: 1.5;
}

.term-ok {
  color: #5fbf5f;
}

.term-green {
  color: #5fbf5f;
  font-weight: 600;
}

.term-status {
  color: #c9a84c;
  margin-top: 2px;
}

.term-cursor {
  color: #5fbf5f;
  animation: termblink 1.1s step-end infinite;
}

@keyframes termblink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.screen-pillars-de {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: var(--space-2);
  border-top: 1px solid #1a1f2e;
}

.de-pillar {
  font-size: 10px;
  font-family: monospace;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: #0e1220;
  border: 1px solid #1a2a1a;
  color: #5fbf5f;
}

/* The Lucky Riverboat mini-preview (casino) */
.screen-tlr-headline {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.tlr-zero {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #c9a84c;
  font-family: monospace;
}

.tlr-rtp {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #5fbf5f;
  font-family: monospace;
}

.screen-games {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.game-chip {
  font-size: 10px;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: #0e1220;
  border: 1px solid #1a1f2e;
  color: #8a8a8a;
}

.game-accent { border-color: #3a3520; color: #c9a84c; }
.game-teal { border-color: #1a2a28; color: #5fbfb0; }
.game-purple { border-color: #2a1f3a; color: #8e6dc7; }

.screen-pay {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid #1a1f2e;
  flex-wrap: wrap;
}

.pay-label {
  font-size: 10px;
  color: #6b7a8d;
  font-family: monospace;
}

.pay-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: #0e1220;
  border: 1px solid #1a2a1a;
  color: #5fbf5f;
  font-family: monospace;
}

/* Wilfong for Governor mini-preview (campaign) */
.screen-gov-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.gov-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7a8d;
}

.gov-headline {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #d8dce4;
  font-family: serif;
}

.gov-headline em {
  color: #c9a84c;
  font-style: normal;
}

.screen-gov-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.gov-pillar {
  font-size: 10px;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: #0e1220;
  border: 1px solid #1a1f2e;
}

.gov-gold { border-color: #3a3520; color: #c9a84c; }
.gov-teal { border-color: #1a2a28; color: #5fbfb0; }
.gov-purple { border-color: #2a1f3a; color: #8e6dc7; }

.screen-gov-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-2);
  border-top: 1px solid #1a1f2e;
}

.gov-progress-label {
  font-size: 10px;
  font-family: monospace;
  color: #6b7a8d;
}

.gov-progress-bar {
  height: 4px;
  background: #0e1220;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.gov-progress-fill {
  height: 100%;
  width: 2%;
  background: #c9a84c;
  border-radius: var(--radius-full);
  animation: govfill 3s ease-in-out infinite;
}

@keyframes govfill {
  0%, 100% { width: 2%; opacity: 0.6; }
  50% { width: 5%; opacity: 1; }
}

/* CI Framework mini-preview (editorial navy/gold) */
.screen-ci-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.ci-eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7a8d;
}

.ci-headline {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #d8dce4;
  font-family: serif;
  line-height: 1.3;
}

.ci-headline em {
  color: #c9a84c;
  font-style: italic;
}

.screen-ci-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: monospace;
  font-size: 10px;
}

.ci-version {
  color: #6b7a8d;
}

.ci-arrow {
  color: #4a5568;
}

.ci-latest {
  color: #c9a84c;
  font-weight: 600;
}

.screen-ci-terminal {
  background: #0a0d14;
  border: 1px solid #1a1f2e;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: monospace;
  font-size: 10px;
}

.ci-term-line {
  color: #8a8a8a;
}

.ci-prompt {
  color: #c9a84c;
  font-weight: 600;
}

.ci-term-ok {
  color: #5fbf5f;
}

/* Xebb's Kingdom mini-preview (RPG) */
.screen-rpg-hud {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.rpg-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rpg-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rpg-bar-label {
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  width: 18px;
  flex-shrink: 0;
}

.rpg-bar {
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex: 1;
}

.rpg-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.rpg-hp { background: #2a1414; }
.rpg-hp .rpg-bar-fill { background: #e74c3c; }
.rpg-mp { background: #141a2a; }
.rpg-mp .rpg-bar-fill { background: #3498db; }
.rpg-xp { background: #142a14; }
.rpg-xp .rpg-bar-fill { background: #2ecc71; }

.rpg-hp .rpg-bar-label { color: #e74c3c; }
.rpg-mp .rpg-bar-label { color: #3498db; }
.rpg-xp .rpg-bar-label { color: #2ecc71; }

.rpg-coin {
  font-size: 10px;
  font-family: monospace;
  color: #c9a84c;
  font-weight: 600;
  white-space: nowrap;
}

.screen-rpg-zones {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.rpg-zone {
  font-size: 9px;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.rpg-safe { border-color: #2d6a4f; color: #52b788; background: rgba(45,106,79,0.1); }
.rpg-pve { border-color: #d35400; color: #e8902a; background: rgba(211,84,0,0.1); }
.rpg-pvp { border-color: #8b0000; color: #cc4444; background: rgba(139,0,0,0.1); }

.screen-rpg-actions {
  display: flex;
  gap: 4px;
  padding-top: var(--space-2);
  border-top: 1px solid #1a1f2e;
}

.rpg-slot {
  font-size: 9px;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: #0e1220;
  border: 1px solid #1a1f2e;
  color: #8a8a8a;
  font-family: monospace;
}

.rpg-spell { border-color: #2a1f3a; color: #8e6dc7; }

/* --- Kick Live Status --- */
.kick-live {
  padding-block: var(--space-4) var(--space-8);
}

.kick-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color 0.3s ease;
}

.kick-box.kick-live-active {
  border-color: #e74c3c;
  box-shadow: 0 0 24px rgba(231, 76, 60, 0.12);
}

.kick-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.kick-status-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.kick-status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.kick-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kick-dot-loading {
  background: var(--color-text-muted);
  opacity: 0.5;
}

.kick-dot-live {
  background: #e74c3c;
  animation: kick-pulse 1.5s ease-in-out infinite;
}

.kick-dot-offline {
  background: var(--color-text-muted);
  opacity: 0.4;
}

@keyframes kick-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
}

.kick-status-text {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kick-status-text.live { color: #e74c3c; }
.kick-status-text.offline { color: var(--color-text-muted); }

.kick-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.kick-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.kick-platform svg {
  color: #53fc18;
  flex-shrink: 0;
}

.kick-box:not(.kick-live-active) .kick-platform svg {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.kick-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.kick-box.expanded .kick-chevron {
  transform: rotate(180deg);
}

.kick-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.kick-box.expanded .kick-content {
  max-height: 300px;
}

.kick-content-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0 var(--space-5) var(--space-5);
  flex-wrap: wrap;
}

.kick-info {
  flex: 1;
  min-width: 200px;
}

.kick-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.kick-stats {
  display: flex;
  gap: var(--space-4);
}

.kick-stat {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.kick-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: var(--color-accent);
  color: #17160e;
}

.kick-watch-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.kick-box.kick-live-active .kick-watch-btn {
  background: #e74c3c;
  color: #fff;
}

[data-theme="dark"] .kick-watch-btn {
  color: #17160e;
}

[data-theme="dark"] .kick-box {
  background: var(--color-surface);
}

/* Xebb's Trip mini-preview (synth) */
.screen-trip-wave {
  margin-bottom: var(--space-2);
  opacity: 0.8;
}

.screen-trip-piano {
  display: flex;
  gap: 1px;
  margin-bottom: var(--space-2);
}

.piano-key {
  flex: 1;
  height: 28px;
  border-radius: 0 0 3px 3px;
  font-size: 8px;
  font-weight: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3px;
}

.piano-white {
  background: #e8e2d8;
  color: #3a2f24;
  border: 1px solid #c4bdb0;
}

.screen-trip-controls {
  display: flex;
  gap: 4px;
  padding-top: var(--space-2);
  border-top: 1px solid #1a1f2e;
}

.trip-knob {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #0e1220;
  border-radius: var(--radius-sm);
  border: 1px solid #1a1f2e;
}

.trip-knob-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a6a6a;
}

.trip-knob-value {
  font-size: 9px;
  font-family: monospace;
  font-weight: 600;
  color: #e8833a;
}

/* Xebb's Travels mini-preview (comic) */
.screen-travels-title {
  text-align: center;
  margin-bottom: var(--space-2);
}

.travels-hero {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ff6b1a;
  text-transform: uppercase;
}

.travels-tag {
  display: block;
  font-size: 8px;
  color: #6a6a6a;
  margin-top: 2px;
  font-style: italic;
}

.screen-travels-vols {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.travels-vol {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.3);
  color: #ff6b1a;
}

.screen-travels-cast {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.travels-char {
  font-size: 9px;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: #0e1220;
  border: 1px solid #1a1f2e;
  color: #8a9ab4;
}

.travels-villain {
  border-color: #8b0000;
  color: #cc4444;
  background: rgba(139, 0, 0, 0.1);
}

/* CH3BCHAIN mini-preview (wallet) */
.screen-ch3b-logo {
  text-align: center;
  margin-bottom: var(--space-2);
}

.ch3b-hex {
  font-size: 24px;
  color: #e8833a;
  text-shadow: 0 0 12px rgba(232, 131, 58, 0.4);
}

.screen-ch3b-features {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.ch3b-pill {
  font-size: 8px;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: #0e1220;
  border: 1px solid #1a1f2e;
  color: #8a9ab4;
}

.screen-ch3b-connect {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: #e8833a;
  color: #17160e;
  margin: 0 auto;
  width: fit-content;
}

/* Merch Shop mini-preview (e-commerce) */
.screen-merch-hero {
  text-align: center;
  margin-bottom: var(--space-2);
}

.merch-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  margin-bottom: 3px;
}

.merch-tagline {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #d8dce4;
}

.screen-merch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: var(--space-2);
}

.merch-item {
  font-size: 9px;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: #0e1220;
  border: 1px solid #1a1f2e;
  color: #8a9ab4;
}

.screen-merch-brands {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.merch-brand {
  font-size: 8px;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.merch-xebb {
  background: rgba(232, 131, 58, 0.12);
  border: 1px solid rgba(232, 131, 58, 0.3);
  color: #e8833a;
}

.merch-cheb {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

/* --- About --- */
.about {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  border-top: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.skill-list li {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  max-width: none;
}

.about-card {
  position: sticky;
  top: 100px;
}

.about-card-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .about-card {
    position: static;
  }
}

/* --- Work / Projects --- */
.work {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  border-top: 1px solid var(--color-border);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.work-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32ch;
  text-align: right;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .work-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .work-note {
    text-align: left;
  }
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:not(.project-soon):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

/* Project Visual — Mini Browser Preview */
.project-visual {
  padding: var(--space-6);
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-border);
}

.project-screen {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.screen-dots {
  display: flex;
  gap: 5px;
}

.screen-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  display: block;
}

.screen-dots i:nth-child(1) { background: #e8524a; }
.screen-dots i:nth-child(2) { background: #e8a93a; }
.screen-dots i:nth-child(3) { background: #5cb85c; }

.screen-title {
  font-family: var(--font-body);
  font-weight: 500;
}

.screen-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 180px;
}

.screen-dialup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}

.screen-phone {
  font-size: 1.75rem;
  animation: shake 0.5s infinite;
}

@keyframes shake {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

.screen-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.screen-progress {
  width: 80%;
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-1);
}

.screen-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  animation: loadbar 2s ease-in-out infinite;
}

@keyframes loadbar {
  0% { width: 0%; }
  50% { width: 75%; }
  100% { width: 100%; }
}

.screen-bps {
  font-size: var(--text-xs);
  font-family: monospace;
  color: var(--color-teal);
  font-weight: 600;
}

.screen-chat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: var(--text-xs);
  font-family: monospace;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--color-border);
}

.chat-line b {
  color: var(--color-accent);
}

.chat-line:nth-child(2) b { color: var(--color-teal); }
.chat-line:nth-child(3) b { color: #c44d8e; }

/* Project Info */
.project-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--transition), gap var(--transition);
}

.project-link:hover {
  border-color: var(--color-accent);
  gap: var(--space-3);
}

/* Coming Soon card */
.project-soon {
  border-style: dashed;
  opacity: 0.7;
}

.project-visual-soon {
  padding: var(--space-6);
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.soon-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  font-weight: 500;
}

.project-title-soon {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.project-desc-soon {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* --- Contact --- */
.contact {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.contact-inner {
  max-width: var(--content-narrow);
}

.section-light {
  color: var(--color-accent);
}

.contact-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.contact-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 auto var(--space-12);
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.contact-card svg {
  color: var(--color-accent);
}

.contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
}

.contact-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  max-width: none;
}

/* --- Footer --- */
.footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
