@font-face {
  font-family: "Spacerace Bold";
  src:
    local("Spacerace Bold"),
    local("Spacerace-Bold"),
    local("Spacerace");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-body: #09090b;
  --bg-surface: rgba(18, 18, 22, 0.92);
  --bg-elevated: rgba(24, 24, 29, 0.94);
  --border: #27272a;
  --border-bright: #3f3f46;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #d8bea2;
  --accent-hover: #c5a98a;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  --font-bold: "Spacerace Bold", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overscroll-behavior: none;
  background: var(--bg-body);
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overscroll-behavior: none;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a,
button,
[role="button"] {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

b,
strong {
  font-family: var(--font-bold);
  font-weight: 700;
}

#ascii-meadow {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.bg-crt-scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.175) 2px,
    rgba(0, 0, 0, 0.175) 4px
  );
  contain: strict;
}

.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 13, 0.95);
  contain: layout style;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.topbar.is-scrolled {
  background: rgba(10, 10, 12, 0.98);
  border-bottom-color: var(--border-bright);
}

.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(216, 190, 162, 0.35), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

.topbar-inner {
  position: relative;
  z-index: 1;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 200ms ease;
}

.brand-name,
.brand-ext {
  font-family: var(--font-mono);
  font-weight: 700;
}

.brand-ext {
  color: var(--accent);
  transition: letter-spacing 220ms ease;
}

.brand:hover .brand-ext {
  letter-spacing: 0.11em;
}

.rec-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(216, 190, 162, 0.65);
  animation: pulse 2.4s ease-in-out infinite;
  transition: transform 200ms ease;
}

.brand:hover .rec-dot {
  transform: scale(1.22);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
}

.nav-link {
  position: relative;
  padding: 24px 0 22px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 200ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.topbar-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid rgba(216, 190, 162, 0.42);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(216, 190, 162, 0.14) 0%, rgba(20, 20, 23, 0.94) 100%);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-bold);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.topbar-login:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(216, 190, 162, 0.24) 0%, rgba(28, 26, 24, 0.96) 100%);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(216, 190, 162, 0.2);
}

.login-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.88rem;
  line-height: 1;
}

.login-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.page-layout {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 38px;
  padding-bottom: 68px;
}

.smoked-glass-panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(16, 16, 19, 0.93) 0%,
    rgba(11, 11, 13, 0.91) 100%
  );
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  contain: layout style paint;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background-color 220ms ease;
}

.smoked-glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}

.smoked-glass-panel:hover,
html.js-ready .smoked-glass-panel[data-reveal].is-visible:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(216, 190, 162, 0.38);
  background: linear-gradient(
    160deg,
    rgba(21, 21, 25, 0.94) 0%,
    rgba(14, 14, 17, 0.92) 100%
  );
}

.intro-panel {
  padding: 28px 36px 24px;
}

.section-kicker,
.section-aside,
.intro-bottom-line,
.footer-note,
.back-to-top {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.kicker-line {
  width: 22px;
  height: 1px;
  background: var(--accent);
  transition: width 240ms ease;
}

.intro-panel:hover .kicker-line {
  width: 34px;
}

.kicker-index {
  color: var(--accent);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: 46px 0 42px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-bold);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

.intro-copy h1 {
  max-width: 740px;
  margin-bottom: 20px;
  color: var(--text-main);
  font-family: var(--font-bold);
  font-size: clamp(2.85rem, 7.1vw, 5.9rem);
  line-height: 0.99;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow:
    -0.8px 0 rgba(255, 72, 92, 0.18),
    0.8px 0 rgba(56, 232, 255, 0.18);
}

.accent {
  color: var(--accent);
  text-shadow:
    0 0 24px rgba(216, 190, 162, 0.28),
    -1.2px 0 rgba(255, 72, 92, 0.28),
    1.2px 0 rgba(56, 232, 255, 0.28);
  transition: color 220ms ease, text-shadow 220ms ease;
}

.intro-copy h1:hover .accent,
.accent:hover {
  color: #ebd5bd;
  text-shadow:
    0 0 32px rgba(216, 190, 162, 0.55),
    -2px 0 rgba(255, 72, 92, 0.45),
    2px 0 rgba(56, 232, 255, 0.45);
}

.intro-text {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 6px 10px 6px 0;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-bold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 200ms ease, letter-spacing 200ms ease;
}

.text-link span {
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.text-link:hover {
  color: var(--accent);
  letter-spacing: 0.09em;
}

.text-link:hover span {
  transform: translateY(4px);
}

.intro-bottom-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.63rem;
}

.hero-stagger {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: heroEnter 640ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--stagger, 0) * 85ms + 60ms);
}

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.content-section {
  padding: 34px 36px;
}

html.js-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background-color 220ms ease;
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-bold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  color: var(--text-main);
  font-family: var(--font-bold);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.content-section:hover .section-heading h2 {
  color: #ffffff;
  text-shadow:
    -1px 0 rgba(255, 72, 92, 0.25),
    1px 0 rgba(56, 232, 255, 0.25);
}

.section-aside {
  padding-bottom: 7px;
  color: var(--text-dim);
  font-size: 0.64rem;
  transition: color 220ms ease;
}

.content-section:hover .section-aside {
  color: var(--text-muted);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  --mouse-x: 50%;
  --mouse-y: 50%;
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    340px circle at var(--mouse-x) var(--mouse-y),
    rgba(216, 190, 162, 0.09),
    transparent 68%
  );
  transition: opacity 220ms ease;
}

.spotlight-card:hover {
  border-color: var(--border-bright);
  border-left-color: var(--accent);
  background: var(--bg-elevated);
  transform: translate3d(0, -2px, 0);
}

.spotlight-card:hover::before {
  opacity: 1;
}

.about-placeholder,
.contact-placeholder {
  max-width: 780px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--bg-surface);
}

.about-placeholder p {
  position: relative;
  z-index: 1;
  max-width: 690px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.85;
  transition: color 220ms ease;
}

.about-placeholder:hover p {
  color: var(--text-main);
}

.contact-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-placeholder span {
  position: relative;
  z-index: 1;
  transition: color 220ms ease;
}

.contact-placeholder:hover span {
  color: var(--text-main);
}

.footer {
  position: relative;
  z-index: 10;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(11, 11, 13, 0.95);
  contain: layout style;
}

.footer-inner {
  position: relative;
  z-index: 1;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.045em;
}

.footer-note {
  color: var(--text-dim);
  font-size: 0.61rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  transition: color 200ms ease, transform 200ms ease;
}

.back-to-top:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .topbar-inner {
    min-height: 62px;
    gap: 14px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-link {
    padding: 22px 0 20px;
    font-size: 0.78rem;
  }

  .nav-link::after {
    bottom: 13px;
  }

  .topbar-login {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .intro-panel {
    padding: 22px 22px 20px;
  }

  .content-section {
    padding: 26px 22px;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 0 32px;
  }

  .page-layout {
    gap: 20px;
    padding-top: 24px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .topbar-inner {
    min-height: auto;
    flex-wrap: wrap;
    padding-top: 13px;
    padding-bottom: 10px;
  }

  .brand {
    order: 1;
  }

  .topbar-login {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 24px;
    border-top: 1px solid var(--border);
  }

  .nav-link {
    padding: 11px 0 5px;
  }

  .nav-link::after {
    bottom: 0;
  }

  .intro-panel {
    padding: 18px 18px 16px;
  }

  .content-section {
    padding: 22px 18px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0 26px;
  }

  .intro-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-aside {
    max-width: 105px;
    text-align: right;
    line-height: 1.5;
  }

  .footer-inner {
    min-height: 76px;
    flex-wrap: wrap;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .footer-note {
    order: 3;
    width: 100%;
  }
}

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

  .hero-stagger,
  html.js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

.smoked-glass-panel::after {
  z-index: 1;
}

.projects-hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
}

.projects-hero-grid .intro-copy h1 {
  max-width: 100%;
  font-size: clamp(2.15rem, 4.3vw, 3.85rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.project-index-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(14, 14, 17, 0.9);
}

.project-index-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  text-align: left;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-index-item:hover {
  color: var(--text-main);
  background: rgba(24, 24, 29, 0.94);
  border-color: var(--border-bright);
  transform: translateX(3px);
}

.project-index-item.is-active {
  color: var(--text-main);
  border-color: rgba(216, 190, 162, 0.45);
  background: rgba(216, 190, 162, 0.09);
}

.project-index-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-index-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-index-status {
  padding: 2px 6px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.project-index-status.is-live {
  border-color: rgba(216, 190, 162, 0.42);
  color: var(--accent);
  background: rgba(216, 190, 162, 0.08);
}

.project-stage {
  position: relative;
}

.project-panel[hidden] {
  display: none;
}

.project-panel.is-switching {
  animation: panelSwap 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes panelSwap {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.project-heading-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pose-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(216, 190, 162, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(216, 190, 162, 0.18) 0%, rgba(216, 190, 162, 0.07) 100%);
  box-shadow:
    0 0 20px rgba(216, 190, 162, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.pose-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(216, 190, 162, 0.8);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.pose-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(216, 190, 162, 0.28) 0%, rgba(216, 190, 162, 0.12) 100%);
  box-shadow:
    0 4px 24px rgba(216, 190, 162, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pose-toggle-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #141311;
  box-shadow: 0 0 26px rgba(216, 190, 162, 0.36);
}

.pose-toggle-btn.is-active .pose-indicator {
  background: #141311;
  box-shadow: none;
}

.skin-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 6px;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  background: rgba(14, 14, 17, 0.94);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.skin-ctrl-btn:hover {
  color: var(--text-main);
  border-color: var(--accent);
  background: rgba(26, 25, 24, 0.96);
}

.skin-ctrl-btn.is-active {
  color: var(--accent);
  border-color: rgba(216, 190, 162, 0.5);
  background: rgba(216, 190, 162, 0.1);
}

.project-lead {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.78;
}

.skin-showcase-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skin-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: #121216;
}

.skin-card:hover {
  background: #17171c;
}

.skin-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.skin-tag {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.skin-nick {
  color: var(--text-main);
  font-family: var(--font-bold);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skin-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 190, 162, 0.15), transparent 64%),
    radial-gradient(ellipse at 50% 88%, rgba(216, 190, 162, 0.17), transparent 55%),
    #090a0b;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.skin-card[data-skin-key="stefan"] .skin-viewport,
.skin-card[data-skin-key="avrael"] .skin-viewport {
  background:
    radial-gradient(circle at 50% 42%, rgba(145, 70, 255, 0.16), transparent 64%),
    radial-gradient(ellipse at 50% 88%, rgba(145, 70, 255, 0.19), transparent 55%),
    #090a0b;
}

.skin-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.skin-canvas.is-dragging {
  cursor: grabbing;
}

.skin-controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .projects-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .skin-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .skin-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-heading-actions {
    align-items: flex-end;
  }
}

.skin-profile-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.skin-profile-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.skin-profile-arrow {
  margin-left: auto;
  font-size: 0.78rem;
  transition: transform 180ms ease;
}

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

.skin-profile-btn:hover .skin-profile-arrow {
  transform: translate(2px, -1px);
}

.skin-profile-btn--home {
  border: 1px solid rgba(216, 190, 162, 0.42);
  background: linear-gradient(135deg, rgba(216, 190, 162, 0.14) 0%, rgba(216, 190, 162, 0.05) 100%);
  color: var(--accent);
}

.skin-profile-btn--home:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(216, 190, 162, 0.24) 0%, rgba(216, 190, 162, 0.1) 100%);
  color: var(--text-main);
  box-shadow: 0 0 18px rgba(216, 190, 162, 0.22);
}

.skin-profile-btn--home:hover .skin-profile-arrow {
  transform: translateX(3px);
}

.skin-profile-btn--twitch {
  border: 1px solid rgba(145, 70, 255, 0.44);
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.17) 0%, rgba(145, 70, 255, 0.05) 100%);
  color: #c8a7ff;
}

.skin-profile-btn--twitch:hover {
  border-color: #a970ff;
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.28) 0%, rgba(145, 70, 255, 0.12) 100%);
  color: #f4eeff;
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.28);
}

.project-stage[hidden] {
  display: none;
}

.project-panel.is-switching .skin-card {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: skinTileReveal 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.project-panel.is-switching .skin-card:nth-child(1) {
  animation-delay: 50ms;
}

.project-panel.is-switching .skin-card:nth-child(2) {
  animation-delay: 120ms;
}

.project-panel.is-switching .skin-card:nth-child(3) {
  animation-delay: 190ms;
}

@keyframes skinTileReveal {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-panel.is-switching .skin-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
