:root {
  --top-panel-height: 72px;
  --left-panel-width: 15%;
  --right-panel-bg: #111318;
  --card-bg: #181b22;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-panel-height) + 24px);
  background-color: var(--right-panel-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body {
  min-height: 100vh;
  background-color: var(--right-panel-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ==========================================================================
   TOP HORIZONTAL GRAY PANEL (SLICED 2ND BAND FROM TopPanel.PNG, NO BORDERS)
   ========================================================================== */
.top-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-panel-height);
  background-color: transparent;
  background-image: url('assets/top_panel_2.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 8px;
  z-index: 100;
}

.top-panel__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent-white);
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-white);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent-white);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.social-link__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.top-panel__right {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.is-active {
  color: var(--accent-white);
  background-color: rgba(255, 255, 255, 0.14);
  border: none;
}

/* ==========================================================================
   FULL-SCREEN WIND PIXELS OVERLAY CANVAS
   ========================================================================== */
.wind-pixels-canvas {
  position: fixed;
  top: calc(var(--top-panel-height) - 10px);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--top-panel-height) + 10px);
  display: block;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 60;
}

/* ==========================================================================
   SPLIT WORKSPACE: THIN 15% LEFT PANEL & 85% RIGHT CONTENT PANEL
   ========================================================================== */
.workspace-layout {
  display: flex;
  align-items: stretch;
  padding-top: var(--top-panel-height);
  min-height: 100vh;
}

/* Left Vertical Panel: scrolls natively in lockstep with .right-panel */
.left-panel {
  position: relative;
  width: var(--left-panel-width);
  flex-shrink: 0;
  margin-top: -10px;
  border: none;
  background: transparent;
  z-index: 20;
  user-select: none;
  pointer-events: none;
}

/* Fixed color canvas at the back of the left panel (z-index: 1) */
.left-panel__canvas {
  position: fixed;
  top: calc(var(--top-panel-height) - 10px);
  left: 0;
  bottom: 0;
  width: var(--left-panel-width);
  height: calc(100vh - var(--top-panel-height) + 10px);
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Natively scrolling 6-strip brush stencil on top of the color canvas (z-index: 2) */
.left-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/left_strips_stencil.png');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: 0 0;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   RIGHT SCROLLABLE CONTENT PANEL & SEPARATE PAGE VIEWS (85% WIDTH, NO BORDERS)
   ========================================================================== */
.right-panel {
  margin-left: 0;
  width: calc(100% - var(--left-panel-width));
  flex: 1;
  padding: 36px 44px 80px;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - var(--top-panel-height));
  position: relative;
  z-index: 30;
}

.page-view {
  display: none;
  flex-direction: column;
  gap: 36px;
  animation: pageFadeIn 0.32s ease-out;
}

.page-view.is-active {
  display: flex;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-strip {
  padding: 26px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b1f29 0%, #14171f 100%);
  border: none;
}

.intro-strip__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.intro-strip__headline {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--accent-white);
}

.intro-strip__subtext {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 68ch;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 8px;
  border: none;
}

.section-header__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.section-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-white);
}

.section-header__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: #1b1f28;
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Focus Item Cards (Artworks, Games, Contacts) — Borderless */
.focus-item {
  background-color: var(--card-bg);
  border: none;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.focus-item.is-focused {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
}

.focus-item__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  background-color: #0d0f14;
  overflow: hidden;
  border: none;
}

.focus-item__media--compact {
  aspect-ratio: 16 / 5.6;
}

.artwork-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.focus-item__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  border-radius: 6px;
  background-color: rgba(15, 17, 23, 0.78);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-white);
  backdrop-filter: blur(6px);
}

.focus-item__tag--game {
  background-color: rgba(30, 41, 59, 0.85);
}

.focus-item__body {
  padding: 24px 28px 28px;
}

.focus-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.focus-item__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-white);
  margin-bottom: 2px;
}

.focus-item__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.focus-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inspect-btn,
.play-btn {
  appearance: none;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.inspect-btn {
  background-color: #262b38;
  color: var(--text-primary);
}

.inspect-btn:hover,
.inspect-btn:focus-visible {
  background-color: #32394a;
  transform: translateY(-1px);
}

.play-btn {
  background-color: #f3f4f6;
  color: #0f172a;
}

.play-btn:hover,
.play-btn:focus-visible {
  background-color: #ffffff;
  transform: translateY(-1px);
}

.focus-item__description {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.game-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.spec-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cbd5e1;
  background-color: #222632;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   CONTACTS SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.channel-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 10px;
  background-color: #202430;
  border: none;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.channel-card:hover,
.channel-card:focus-visible {
  background-color: #282d3d;
  transform: translateX(3px);
}

.channel-card--static:hover {
  transform: none;
}

.channel-card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.channel-card__handle {
  font-size: 1.02rem;
  color: var(--accent-white);
}

.channel-card__cta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #94a3b8;
}

.right-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.back-top-link {
  color: var(--text-primary);
  text-decoration: none;
}

.back-top-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MODAL DIALOG (ARTWORK INSPECT & MINI-GAME DEMO)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 10, 14, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 760px;
  background-color: #181b22;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.modal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background-color: #222631;
}

.modal-card__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.modal-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-white);
}

.modal-close-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: none;
  background-color: #2d3240;
  color: var(--accent-white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close-btn:hover {
  background-color: #3d4456;
}

.modal-card__canvas-wrap {
  background-color: #0b0d12;
  width: 100%;
  aspect-ratio: 16 / 9;
}

#modal-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.modal-card__footer {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-card__desc {
  color: #e2e8f0;
  font-size: 0.92rem;
}

.modal-card__instructions {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS (KEEPS 15% LEFT VERTICAL PANEL)
   ========================================================================== */
@media (max-width: 900px) {
  .right-panel {
    padding: 24px 20px 60px;
  }

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

@media (max-width: 600px) {
  .top-panel {
    padding: 0 12px 6px;
  }

  .top-panel__left {
    gap: 8px;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .social-link {
    width: 30px;
    height: 30px;
  }

  .social-link__icon {
    width: 18px;
    height: 18px;
  }

  .nav-list {
    gap: 2px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .right-panel {
    padding: 18px 14px 48px;
  }

  .focus-item__body {
    padding: 16px 16px 20px;
  }
}
