/* ═══════════════════════════════════════════
   Odissey Pogosov - Narrative Design Portfolio
   ═══════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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


/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease, border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.nav.is-scrolled {
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-sig {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.nav-sig:hover {
  opacity: 1;
}

.nav-wordmark {
  position: relative;
  display: inline-block;
  padding-right: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.nav-wordmark::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 0;
  width: 4px;
  height: 4px;
  background: #ff8c00;
}

.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-about-link {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-about-link:hover,
.nav-about-link[aria-current="page"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  font-family: inherit;
}

.nav-btn:hover {
  border-color: #444;
  background: #0d0d0d;
}

.nav-btn--linkedin {
  background: rgba(10, 102, 194, 0.1);
  border-color: rgba(65, 145, 224, 0.35);
}

.nav-btn--linkedin:hover {
  background: rgba(10, 102, 194, 0.2);
  border-color: rgba(88, 166, 243, 0.65);
}

.nav-btn svg {
  width: 14px;
  height: 14px;
}

/* ─── Nav menu (hexagon trigger + dropdown) ─── */
.nav-menu {
  position: relative;
}

.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s;
}

.nav-menu-trigger:hover,
.nav-menu.is-open .nav-menu-trigger {
  background: rgba(255, 255, 255, 0.06);
}

.nav-logo-hex-svg {
  width: 44px;
  height: 44px;
  overflow: visible;
  transition: filter 0.4s ease;
}

.nav-logo-hex,
.nav-logo-player {
  transform-box: view-box;
  transform-origin: 14px 14px;
}

.nav-logo-hex {
  transition: stroke 0.35s ease;
}

.nav-logo-player {
  transition: fill 0.35s ease;
}

.nav-menu-trigger:hover .nav-logo-hex-svg,
.nav-menu.is-open .nav-logo-hex-svg {
  filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.6));
}

.nav-menu-trigger:hover .nav-logo-hex,
.nav-menu.is-open .nav-logo-hex {
  animation: hexSpin 1.6s linear infinite;
  stroke: #FF8C00;
}

.nav-menu-trigger:hover .nav-logo-player,
.nav-menu.is-open .nav-logo-player {
  animation: playerOrbit 1.6s linear infinite;
  fill: #FF8C00;
}

@keyframes hexSpin {
  to { transform: rotate(360deg); }
}

@keyframes playerOrbit {
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu-trigger:hover .nav-logo-hex,
  .nav-menu-trigger:hover .nav-logo-player,
  .nav-menu.is-open .nav-logo-hex,
  .nav-menu.is-open .nav-logo-player {
    animation: none;
  }
}

.nav-menu-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.nav-menu.is-open .nav-menu-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu-list a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu-list a:hover {
  background: rgba(255, 140, 0, 0.12);
  color: #FF8C00;
}


/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 40px 100px;
  text-align: center;
}

.hero-name {
  position: relative;
  margin-bottom: 48px;
}

.hero-avatar {
  --mx: 0px;
  --my: 0px;
  --scale: 0.6;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(160px, 22vw, 320px);
  height: clamp(160px, 22vw, 320px);
  border-radius: 14%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF8C00 0%, #c7c5c2 100%);
  box-shadow: 0 12px 40px rgba(255, 140, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 2;
  opacity: 0;
  will-change: transform;
  transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my))) scale(var(--scale));
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s,
              transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-avatar.is-in {
  opacity: 1;
  --scale: 1;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
  display: block;
}

.hero-avatar-initials {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 54px);
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.hero-name-line {
  display: block;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 17vw, 260px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  user-select: none;
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-name-line:first-child {
  color: #FF8C00;
}

.hero-name-line:last-child {
  color: #c7c5c2;
}

.hero-name-line--narrative {
  font-size: clamp(54px, 13.5vw, 210px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hero-name-line--narrative.is-changing {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.99) !important;
}

.hero-name-line:nth-child(2) {
  animation-delay: 0.12s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
  }
}

.hero-sub {
  width: min(100%, 920px);
  max-width: none;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-sub strong {
  color: #ff8c00;
  font-weight: 500;
}


/* ─── CTA Pill ─── */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 999px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12);
}

.cta-pill svg {
  width: 15px;
  height: 15px;
}


/* ─── Projects Section ─── */
.projects {
  padding: 0 40px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.projects-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0 44px;
}

.projects-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ff8c00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.projects-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.project-filter {
  appearance: none;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.project-filter:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.project-filter.is-active {
  border-color: #ff8c00;
  background: #ff8c00;
  color: #111;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}


/* ─── Pixel Art 3D Models / picoCAD ─── */
.visual-worldbuilding {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 92px;
}

.visual-worldbuilding-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 48px;
}

.visual-worldbuilding-intro {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.75;
}

.picocad-stack {
  position: relative;
  max-width: 1000px;
  margin-left: auto;
}

.picocad-sticky-wrap {
  position: sticky;
  padding-bottom: 20px;
}

.picocad-card {
  cursor: default;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.picocad-card .picocad-card-media {
  aspect-ratio: 16 / 8.5;
  background: #050505;
}

.picocad-card-media::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.picocad-card .picocad-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}

.picocad-card:hover video {
  transform: scale(1.035);
  filter: saturate(1.12);
}

.picocad-media-caption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
}

.picocad-media-caption span {
  display: block;
  margin-bottom: 7px;
  color: var(--card-accent, #fff);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.picocad-media-caption p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

/* ─── Narrative Playground / Dream from Suffering ─── */
.playground-page {
  background:
    radial-gradient(circle at 88% 16%, rgba(76, 52, 128, 0.18), transparent 28%),
    #000;
}

.playground-hero {
  max-width: 1200px;
}

.playground-concept-index {
  display: block;
  margin-bottom: 20px;
  color: #a882ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.playground-premise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 72px;
  align-items: start;
}

.playground-premise h2,
.dream-document-copy h2 {
  margin: 18px 0 28px;
  font-size: clamp(26px, 3.6vw, 44px);
}

.playground-thesis {
  padding: 28px;
  border: 1px solid rgba(168, 130, 255, 0.3);
  border-radius: 16px;
  background: rgba(168, 130, 255, 0.07);
}

.playground-thesis > span {
  display: block;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.playground-thesis blockquote {
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 28px;
  line-height: 1.15;
  text-transform: uppercase;
}

.dream-zones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.dream-zone {
  position: relative;
  min-height: 330px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--zone) 18%, #090909), #060606 72%);
}

.dream-zone::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--zone);
  filter: blur(60px);
  opacity: 0.42;
}

.dream-zone--green { --zone: #4ea868; }
.dream-zone--blue { --zone: #4b91c9; }
.dream-zone--indigo { --zone: #4d4aa6; }
.dream-zone--violet { --zone: #8f52b9; }

.dream-zone > span,
.dream-identity article > span {
  position: relative;
  color: var(--zone, #a882ff);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dream-zone h3 {
  position: relative;
  margin-top: 126px;
  color: #fff;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 31px;
  line-height: 1;
}

.dream-zone p {
  position: relative;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.53);
  font-size: 12px;
  line-height: 1.55;
}

.dream-system-grid .project-info-item {
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.dream-system-grid .project-info-item p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.dream-identity {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 34px;
}

.dream-identity article {
  min-height: 280px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(168, 130, 255, 0.1), rgba(255, 255, 255, 0.02));
}

.dream-identity article h3 {
  margin: 112px 0 12px;
  color: #fff;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 36px;
  line-height: 1;
}

.dream-identity article p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.6;
}

.dream-identity-shift {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.dream-document-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 72px;
  align-items: center;
}

.dream-document-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.3s, border-color 0.3s;
}

.dream-document-preview:hover {
  transform: translateY(-4px) rotate(0.4deg);
  border-color: rgba(168, 130, 255, 0.55);
}

.dream-document-preview img {
  width: 100%;
  display: block;
}

.dream-document-preview span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .playground-premise,
  .dream-document-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .dream-identity {
    grid-template-columns: 1fr;
  }

  .dream-identity-shift {
    min-height: 70px;
  }

  .dream-document-preview {
    max-width: 460px;
  }
}

@media (max-width: 560px) {
  .dream-zones {
    grid-template-columns: 1fr;
  }

  .dream-zone {
    min-height: 280px;
  }

  .dream-zone h3 {
    margin-top: 96px;
  }

  .playground-thesis blockquote {
    font-size: 24px;
  }
}

@media (max-width: 1100px) {
  .visual-worldbuilding-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .picocad-stack {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .visual-worldbuilding {
    padding: 60px 16px 80px;
  }

  .visual-worldbuilding-head {
    margin-bottom: 32px;
  }

  .visual-worldbuilding-intro {
    font-size: 14px;
  }

  .picocad-card .picocad-card-media {
    aspect-ratio: 16 / 10;
  }

  .picocad-media-caption {
    right: 16px;
    bottom: 15px;
    left: 16px;
  }

  .picocad-media-caption p {
    font-size: 11px;
  }

}


/* ─── Sticky Card Stack ─── */
.card-sticky-wrap {
  position: sticky;
  top: 40px;
  padding-bottom: 20px;
}

.card-sticky-wrap[hidden] {
  display: none;
}

.card-sticky-wrap:nth-child(1) {
  top: 40px;
  z-index: 5;
}

.card-sticky-wrap:nth-child(2) {
  top: 60px;
  z-index: 6;
}

.card-sticky-wrap:nth-child(3) {
  top: 80px;
  z-index: 7;
}

.card-sticky-wrap:nth-child(4) {
  top: 100px;
  z-index: 8;
}

.card-sticky-wrap:nth-child(5) {
  top: 120px;
  z-index: 9;
}

.card-sticky-wrap:nth-child(6) {
  top: 140px;
  z-index: 10;
}


/* ─── Project Card ─── */
.card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center top;
}

.card:hover {
  transform: scale(1.008);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.card--disabled {
  cursor: default;
}

.card--disabled:hover {
  transform: none;
  box-shadow: none;
}

.card--disabled .card-arrow {
  display: none;
}

.card.is-stacked {
  transform: scale(var(--stack-scale, 1)) translateY(var(--stack-y, 0px));
  opacity: var(--stack-opacity, 1);
  filter: brightness(var(--stack-brightness, 1));
}

/* Card - header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-year {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.5;
}

.card-type {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

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

/* Card - title */
.card-title-block {
  padding: 20px 28px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.card-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: currentColor;
  -webkit-text-stroke: 0.45px var(--card-accent, transparent);
  paint-order: stroke fill;
  text-shadow: 0 0 18px rgba(var(--card-accent-rgb, 255, 255, 255), 0.16);
  transition: text-shadow 0.3s ease;
}

.card:hover .card-title {
  text-shadow:
    0 0 10px rgba(var(--card-accent-rgb, 255, 255, 255), 0.34),
    0 0 28px rgba(var(--card-accent-rgb, 255, 255, 255), 0.2);
}

.card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.card:hover .card-arrow {
  background: rgba(0, 0, 0, 0.3);
  transform: rotate(-45deg);
}

.card-arrow svg {
  width: 18px;
  height: 18px;
}

/* Card - image */
.card-image {
  margin: 0 16px 16px;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-image img {
  transform: scale(1.03);
}

.card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Liquid-glass overlay - прячет шум видео, подсвечивает заголовок */
.card-glass {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(15, 8, 12, 0.22) 0%,
    rgba(15, 8, 12, 0.14) 100%
  );
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  transition:
    backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.card-glass-title {
  font-family: 'Big Shoulders Display', 'Oswald', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  -webkit-text-stroke: 1px var(--card-accent, transparent);
  paint-order: stroke fill;
  text-shadow:
    0 2px 30px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(255, 255, 255, 0.2);
  transition:
    letter-spacing 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 0.5s ease,
    color 0.5s ease;
}

/* На hover - стекло тает, видео становится читаемым */
.card:hover .card-glass {
  backdrop-filter: blur(2px) saturate(130%);
  -webkit-backdrop-filter: blur(2px) saturate(130%);
  background: linear-gradient(
    180deg,
    rgba(15, 8, 12, 0.08) 0%,
    rgba(15, 8, 12, 0.30) 100%
  );
}

/* Вариант без текста - чистый блюр, полностью снимается на hover */
.card-glass--plain {
  background: linear-gradient(
    180deg,
    rgba(10, 20, 14, 0.20) 0%,
    rgba(10, 20, 14, 0.10) 100%
  );
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  transition:
    backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-glass--plain {
  backdrop-filter: blur(0) saturate(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  background: transparent;
  opacity: 0;
}

.card:hover .card-glass-title {
  letter-spacing: 0;
  text-shadow:
    0 0 6px  rgba(var(--glow-core,  255, 80, 100), 0.85),
    0 0 18px rgba(var(--glow-mid,   220, 40,  60), 0.75),
    0 0 38px rgba(var(--glow-outer, 178, 34,  52), 0.60),
    0 0 70px rgba(var(--glow-outer, 178, 34,  52), 0.35),
    0 2px 30px rgba(0, 0, 0, 0.5);
}

.card-glass-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1.3vw, 14px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.2;
  background: rgba(0, 0, 0, 0.15);
}

.card-narrative-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 140, 0, 0.25), transparent 38%),
    linear-gradient(135deg, #24160f 0%, #0d0b12 55%, #171025 100%);
}

.card-narrative-kicker {
  color: #ff8c00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-narrative-label {
  max-width: 900px;
  font-family: 'Big Shoulders Display', 'Oswald', sans-serif;
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

/* Card - dark / light variants */
.card--dark {
  color: #fff;
}

.card--dark .card-type {
  background: rgba(255, 255, 255, 0.1);
}

.card--dark .card-arrow {
  background: rgba(255, 255, 255, 0.1);
}

.card--dark:hover .card-arrow {
  background: rgba(255, 255, 255, 0.2);
}

.card--light {
  color: #000;
}

.card--light .card-type {
  background: rgba(0, 0, 0, 0.08);
}


/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: perspective(1200px) translateY(80px);
  transition: opacity 0.8s cubic-bezier(0.44, 0, 0.56, 1),
    transform 0.8s cubic-bezier(0.44, 0, 0.56, 1);
}

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


/* ─── Footer CTA ─── */
.footer-cta {
  padding: 140px 40px;
  text-align: center;
}

.footer-cta h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.footer-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
}

.footer-cta-avatar {
  width: clamp(120px, 14vw, 180px);
  height: clamp(120px, 14vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  margin: 0 auto 28px;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.contact-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.contact-secondary a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.contact-secondary a:hover {
  border-color: rgba(255, 140, 0, 0.5);
  background: rgba(255, 140, 0, 0.06);
  color: #ff8c00;
}

.about-hero-text .contact-secondary {
  justify-content: flex-start;
}


/* ─── Pico-8 module ─── */
.pico-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 40px 140px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pico-section[hidden] {
  display: none;
}

.pico-section--easter.is-discovered {
  animation: pico-easter-reveal 0.55s ease both;
}

@keyframes pico-easter-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.pico-section-head {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.65fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 44px;
}

.pico-section-head > p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.7;
}

.pico-console {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 24px;
  background: linear-gradient(145deg, #111b17, #080a09 60%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.05);
}

.pico-screen-wrap {
  position: relative;
  width: 100%;
  max-width: 512px;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid #4ade80;
  border-radius: 12px;
  background: #020403;
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.28), 0 0 40px rgba(74, 222, 128, 0.08);
}

.pico-start-screen,
.pico-game-screen {
  position: absolute;
  inset: 0;
}

.pico-start-screen {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    linear-gradient(rgba(74, 222, 128, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, #162d22, #050706 65%);
  background-size: 16px 16px, 16px 16px, auto;
}

.pico-start-screen[hidden] {
  display: none;
}

.pico-start-screen small {
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pico-start-pixels {
  display: flex;
  gap: 8px;
}

.pico-start-pixels span {
  width: 10px;
  height: 10px;
  background: #4ade80;
  box-shadow: 12px -12px #60a5fa;
}

.pico-start-pixels span:nth-child(2) { transform: translateY(-10px); }
.pico-start-pixels span:nth-child(3) { transform: translateY(5px); }

.pico-start-button {
  appearance: none;
  padding: 15px 24px;
  border: 2px solid #86efac;
  border-radius: 8px;
  background: #22c55e;
  color: #041108;
  font: 800 14px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 5px 5px 0 #14532d;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.pico-start-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #14532d;
  background: #4ade80;
}

.pico-game-screen,
.pico-game-screen canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 512px !important;
  max-height: 512px !important;
  display: block !important;
  image-rendering: pixelated !important;
  object-fit: fill !important;
  background: #000;
}

.pico-loading {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  display: none;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #86efac;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pico-loading.is-visible { display: block; }

.pico-desktop-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}

.pico-desktop-controls span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pico-desktop-controls kbd {
  min-width: 22px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font: 700 10px/1 'Inter', sans-serif;
  text-align: center;
}

.pico-touch-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 430px;
  margin: 26px auto 0;
  padding: 0 8px;
  touch-action: none;
}

.pico-joystick {
  position: relative;
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  border: 4px solid #3f4944;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #39433e, #111614 70%);
  box-shadow: inset 0 5px 14px rgba(0, 0, 0, 0.65), 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.pico-joystick.is-dragging { cursor: grabbing; }

.pico-joystick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 2px solid #86efac;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4ade80, #15803d);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: transform 0.06s linear;
}

.pico-joystick-arrow {
  position: absolute;
  color: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  pointer-events: none;
}

.pico-joystick-arrow--up { top: 5px; left: 50%; transform: translateX(-50%); }
.pico-joystick-arrow--right { top: 50%; right: 7px; transform: translateY(-50%); }
.pico-joystick-arrow--down { bottom: 5px; left: 50%; transform: translateX(-50%); }
.pico-joystick-arrow--left { top: 50%; left: 7px; transform: translateY(-50%); }

.pico-action-buttons {
  position: relative;
  width: 142px;
  height: 126px;
  flex: 0 0 auto;
}

.pico-action {
  position: absolute;
  width: 66px;
  height: 66px;
  border: 4px solid;
  border-radius: 50%;
  color: #fff;
  font: 900 22px/1 'Inter', sans-serif;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  touch-action: none;
}

.pico-action--x {
  top: 0;
  left: 38px;
  border-color: #4ade80;
  background: linear-gradient(#22c55e, #15803d);
}

.pico-action--z {
  right: 0;
  bottom: 0;
  border-color: #60a5fa;
  background: linear-gradient(#3b82f6, #1d4ed8);
}

.pico-action.is-pressed { transform: translateY(3px) scale(0.95); }

.pico-credit {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .pico-section {
    padding: 80px 16px 100px;
  }

  .pico-section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 32px;
  }

  .pico-console {
    padding: 14px;
    border-radius: 18px;
  }

  .pico-desktop-controls { display: none; }
}


/* ─── Footer ─── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 40px 28px;
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  user-select: none;
}

.footer-wordmark::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--orange);
  opacity: 0.75;
}

.footer-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.15);
}

.pico-easter-trigger {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.22;
  transition: opacity 0.2s, transform 0.2s;
}

.pico-easter-trigger:hover,
.pico-easter-trigger:focus-visible,
.pico-easter-trigger.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

.pico-easter-trigger span,
.pico-easter-trigger span::before,
.pico-easter-trigger span::after {
  position: absolute;
  display: block;
  content: '';
  image-rendering: pixelated;
}

.pico-easter-trigger span {
  top: 8px;
  left: 5px;
  width: 18px;
  height: 13px;
  border: 2px solid #4ade80;
  box-shadow: 2px 2px 0 rgba(20, 83, 45, 0.8);
}

.pico-easter-trigger span::before {
  top: 3px;
  left: 3px;
  width: 3px;
  height: 3px;
  background: #60a5fa;
  box-shadow: 7px 0 #ff8c00;
}

.pico-easter-trigger span::after {
  top: -5px;
  left: 5px;
  width: 5px;
  height: 3px;
  background: #4ade80;
}


/* ─── Festive garland (Christmas lights) ─── */
.card-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 18px;
  pointer-events: none;
  z-index: 4;
}

.card-garland-wire {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 6%,
    rgba(0, 0, 0, 0.45) 94%,
    transparent 100%
  );
  transform: translateY(0);
}

/* Лёгкая «провисающая» кривая у проводов */
.card-garland-wire::after {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50% / 100% 100% 0 0;
  transform: translateY(-1px);
}

.card-garland-bulb {
  width: 8px;
  height: 11px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  position: relative;
  animation: garland-twinkle 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.22s);
  will-change: opacity, filter;
}

/* Тонкая «шапочка» - место крепления к проводу */
.card-garland-bulb::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 3px;
  height: 3px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 1px;
  transform: translateX(-50%);
}

.card-garland-bulb:nth-child(4n+1) {
  background: radial-gradient(circle at 35% 30%, #ff7480, #e01e2c 60%, #8a0f19);
  box-shadow: 0 0 10px rgba(255, 60, 80, 0.9), 0 0 22px rgba(255, 40, 60, 0.55);
}

.card-garland-bulb:nth-child(4n+2) {
  background: radial-gradient(circle at 35% 30%, #fff1a8, #f6c42a 60%, #a8800d);
  box-shadow: 0 0 10px rgba(255, 210, 80, 0.9), 0 0 22px rgba(255, 195, 50, 0.55);
}

.card-garland-bulb:nth-child(4n+3) {
  background: radial-gradient(circle at 35% 30%, #8cf0a6, #27b04b 60%, #0d5d22);
  box-shadow: 0 0 10px rgba(60, 220, 110, 0.85), 0 0 22px rgba(40, 200, 90, 0.5);
}

.card-garland-bulb:nth-child(4n+4) {
  background: radial-gradient(circle at 35% 30%, #9ed9ff, #3a8fe0 60%, #0f3e73);
  box-shadow: 0 0 10px rgba(100, 170, 255, 0.85), 0 0 22px rgba(60, 140, 230, 0.5);
}

@keyframes garland-twinkle {
  0%, 100% { opacity: 1; filter: brightness(1.15); }
  45%      { opacity: 0.55; filter: brightness(0.75); }
  60%      { opacity: 0.55; filter: brightness(0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .card-garland-bulb { animation: none; }
}


/* ─── Project Page ─── */
.project-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 180px 40px 80px;
}

.project-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 40px;
  transition: color 0.2s;
}

.project-back:hover {
  color: #FF8C00;
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}

.project-hero-meta span + span::before {
  content: '·';
  margin-right: 28px;
  opacity: 0.5;
}

.project-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 32px;
}

.project-subtitle {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
  max-width: 760px;
  text-wrap: pretty;
}

.project-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.project-section {
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-section > h2 {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 850px;
  margin-bottom: 32px;
  line-height: 1.12;
  color: #fff;
  text-wrap: balance;
}

.project-section h3 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin: 32px 0 14px;
}

.project-section p {
  max-width: 72ch;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.76);
  text-wrap: pretty;
}

.project-section p + p {
  margin-top: 1.05em;
}

.project-section ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  max-width: 820px;
}

.project-section ol {
  list-style: none;
  counter-reset: project-step;
  padding: 0;
  margin: 24px 0 0;
  max-width: 860px;
}

.project-section ol li {
  counter-increment: project-step;
  padding-left: 46px;
  margin-bottom: 20px;
}

.project-section ol li::before {
  content: counter(project-step, decimal-leading-zero);
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 140, 0, 0.45);
  border-radius: 50%;
  background: transparent;
  color: #ff8c00;
  font-size: 10px;
  font-weight: 700;
}

.project-section li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.project-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: rgba(255, 140, 0, 0.7);
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 32px;
  margin-top: 32px;
}

.project-info-item h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.project-info-item p {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

.project-synopsis {
  max-width: 900px;
  margin-top: 38px;
  scroll-margin-top: 100px;
  padding: 26px 30px;
  border-left: 2px solid #f3c76b;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(243, 199, 107, 0.08), rgba(255, 255, 255, 0.018));
}

.project-synopsis > span {
  display: block;
  margin-bottom: 14px;
  color: #f3c76b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-section .project-synopsis p {
  max-width: 78ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.72;
}

.project-outro {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}

.project-showcase {
  margin: 34px 0 0;
}

.project-showcase img {
  width: 100%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.project-showcase figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  line-height: 1.5;
}

.project-showcase--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.project-metric {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.project-metric strong {
  display: block;
  margin-bottom: 8px;
  color: #ff8c00;
  font-family: 'Big Shoulders Display', 'Oswald', sans-serif;
  font-size: 42px;
  line-height: 1;
}

.project-metric span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.project-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.project-resource-link {
  display: inline-flex;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s;
}

.project-resource-link:hover {
  border-color: #ff8c00;
  color: #ff8c00;
}

.miro-board-preview {
  position: relative;
  display: block;
  margin-top: 32px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #171717;
  transition: border-color 0.25s, transform 0.25s;
}

.miro-board-preview:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 140, 0, 0.45);
}

.miro-board-preview img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.miro-board-preview span {
  display: block;
  padding: 14px 2px 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.miro-screenshots {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.miro-screenshot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #111;
}

.miro-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.miro-screenshot figcaption {
  padding: 13px 16px 14px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-section--world {
  --world-line: rgba(255, 255, 255, 0.1);
}

.world-lead {
  max-width: 900px !important;
  font-size: clamp(18px, 2vw, 23px) !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.world-axis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 44px;
}

.world-state {
  padding: 30px;
  border: 1px solid var(--world-line);
  background: rgba(255, 255, 255, 0.025);
}

.world-state--termannia {
  border-radius: 18px 0 0 18px;
  background: linear-gradient(145deg, rgba(255, 140, 0, 0.1), rgba(255, 255, 255, 0.02) 48%);
}

.world-state--lucernia {
  border-radius: 0 18px 18px 0;
  background: linear-gradient(215deg, rgba(120, 150, 120, 0.12), rgba(255, 255, 255, 0.02) 48%);
}

.world-state-label {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 999px;
  color: #ff8c00;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.world-state--lucernia .world-state-label {
  border-color: rgba(165, 200, 165, 0.35);
  color: #adc6ad;
}

.project-section .world-state h3,
.project-section .faith-system h3,
.project-section .world-conspiracy h3,
.project-section .route-memory h3 {
  margin-top: 20px;
  color: #fff;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
}

.world-state p,
.world-state li {
  font-size: 14px !important;
}

.world-state ul {
  margin-top: 20px;
}

.world-axis-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  margin: 18px 0;
  border-top: 1px solid var(--world-line);
  border-bottom: 1px solid var(--world-line);
  background: #111;
  text-align: center;
}

.world-axis-mark::before,
.world-axis-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 1px;
  background: rgba(255, 140, 0, 0.55);
}

.world-axis-mark::before { left: -11px; }
.world-axis-mark::after { right: -11px; }

.world-axis-mark span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.world-axis-mark strong {
  color: #fff;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.faith-system {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 52px;
  margin-top: 58px;
  padding: 40px;
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(255, 140, 0, 0.1), transparent 38%), #121212;
}

.faith-system-copy p {
  font-size: 15px;
}

.faith-tenets {
  display: grid;
  gap: 12px;
}

.faith-tenets article {
  display: grid;
  grid-template-columns: 34px 100px 1fr;
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--world-line);
}

.faith-tenets article:last-child {
  border-bottom: 0;
}

.faith-tenets span {
  color: #ff8c00;
  font-size: 10px;
  font-weight: 700;
}

.faith-tenets strong {
  color: #fff;
  font-size: 14px;
}

.faith-tenets p {
  font-size: 13px;
  line-height: 1.55;
}

.world-quote {
  position: relative;
  margin: 34px 0 0;
  padding: 28px 34px 28px 64px;
  border-left: 2px solid #ff8c00;
  background: rgba(255, 255, 255, 0.025);
}

.world-quote::before {
  content: '“';
  position: absolute;
  top: 13px;
  left: 22px;
  color: rgba(255, 140, 0, 0.55);
  font-family: Georgia, serif;
  font-size: 54px;
}

.world-quote p {
  max-width: none;
  color: #fff;
  font-size: 19px;
  font-style: italic;
}

.world-quote footer {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
}

.world-conspiracy {
  margin-top: 60px;
}

.world-conspiracy-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  column-gap: 44px;
  align-items: end;
}

.world-conspiracy-head .project-section-eyebrow {
  grid-column: 1 / -1;
}

.world-conspiracy-head h3 {
  margin-bottom: 0;
}

.world-conspiracy-head p {
  font-size: 15px;
}

.conspiracy-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr) 28px) minmax(0, 1fr);
  align-items: center;
  margin-top: 30px;
}

.conspiracy-flow article {
  min-height: 170px;
  padding: 23px 20px;
  border: 1px solid var(--world-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.conspiracy-flow article:last-child {
  border-color: rgba(255, 140, 0, 0.35);
  background: rgba(255, 140, 0, 0.07);
}

.conspiracy-flow article > span {
  display: block;
  margin-bottom: 20px;
  color: #ff8c00;
  font-size: 10px;
  font-weight: 700;
}

.conspiracy-flow strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}

.conspiracy-flow p {
  font-size: 12px;
  line-height: 1.55;
}

.conspiracy-flow > i {
  color: rgba(255, 140, 0, 0.6);
  font-size: 18px;
  font-style: normal;
  text-align: center;
}

.route-memory {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  margin-top: 62px;
  padding-top: 48px;
  border-top: 1px solid var(--world-line);
}

.route-memory ol {
  margin: 0;
}

.route-memory ol li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  margin: 0;
  padding: 16px 0 16px 42px;
  border-bottom: 1px solid var(--world-line);
}

.route-memory ol li::before {
  top: 15px;
}

.route-memory li strong {
  color: #fff;
  font-size: 13px;
}

.route-memory li span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.55;
}

.world-summary {
  max-width: 920px !important;
  margin-top: 48px !important;
  padding: 30px;
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 18px !important;
}

@media (max-width: 860px) {
  .world-axis {
    grid-template-columns: 1fr;
  }

  .world-state--termannia,
  .world-state--lucernia {
    border-radius: 16px;
  }

  .world-axis-mark {
    min-height: 96px;
    margin: 10px 24px;
    border: 0;
  }

  .world-axis-mark::before,
  .world-axis-mark::after {
    top: auto;
    left: 50%;
    width: 1px;
    height: 20px;
  }

  .world-axis-mark::before { top: -10px; }
  .world-axis-mark::after { right: auto; bottom: -10px; }

  .faith-system,
  .world-conspiracy-head,
  .route-memory {
    grid-template-columns: 1fr;
  }

  .conspiracy-flow {
    grid-template-columns: 1fr;
  }

  .conspiracy-flow article {
    min-height: 0;
  }

  .conspiracy-flow > i {
    padding: 7px 0;
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .world-state,
  .faith-system {
    padding: 24px 20px;
  }

  .faith-tenets article {
    grid-template-columns: 28px 84px 1fr;
    gap: 8px;
  }

  .world-quote {
    padding: 24px 20px 24px 48px;
  }

  .route-memory {
    gap: 20px;
  }

  .route-memory ol li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.arcweave-sample {
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: #111217;
}

.arcweave-sample-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arcweave-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69d39f;
  box-shadow: 0 0 12px rgba(105, 211, 159, 0.7);
}

.arcweave-canvas {
  padding: 42px;
  background-color: #171820;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.75px, transparent 0.75px);
  background-size: 18px 18px;
}

.arc-node {
  position: relative;
  padding: 17px;
  border: 1px solid rgba(196, 138, 255, 0.55);
  border-radius: 10px;
  background: #292132;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.arc-node--root {
  max-width: 440px;
  margin: 0 auto 66px;
}

.arc-node--root::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -35px;
  width: 1px;
  height: 34px;
  background: #8c78ad;
}

.arc-node-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #cba7ef;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arc-node p,
.arcweave-caption {
  max-width: none;
}

.arc-node p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.55;
}

.arc-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  max-width: 880px;
  margin: 0 auto;
}

.arc-branches::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: #8c78ad;
}

.arc-branch {
  position: relative;
}

.arc-branch::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 50%;
  width: 1px;
  height: 32px;
  background: #8c78ad;
}

.arc-choice {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
  padding: 10px 13px;
  border: 1px solid rgba(119, 181, 255, 0.55);
  border-radius: 999px;
  background: #1d2938;
  color: #acd1ff;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.arc-choice::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -27px;
  width: 1px;
  height: 26px;
  background: #8c78ad;
}

.arc-branch--accept .arc-node {
  border-color: rgba(105, 211, 159, 0.55);
  background: #1d2d29;
}

.arc-branch--accept .arc-node-meta {
  color: #91dfb8;
}

.arc-branch--reject .arc-node {
  border-color: rgba(242, 105, 121, 0.5);
  background: #302024;
}

.arc-branch--reject .arc-node-meta {
  color: #f69aa6;
}

.arcweave-caption {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.nora-dialogue {
  padding: 36px;
}

.nora-dialogue-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(118, 190, 255, 0.36);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(58, 103, 145, 0.22), rgba(29, 34, 48, 0.92));
}

.dialogue-step {
  display: block;
  margin-bottom: 10px;
  color: #8fc5ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-section .nora-dialogue-intro h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
}

.project-section .nora-dialogue-intro p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.65;
}

.nora-dialogue blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.75;
}

.nora-dialogue-intro blockquote {
  padding-left: 24px;
  border-left: 2px solid rgba(143, 197, 255, 0.65);
  font-size: 17px;
}

.dialogue-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dialogue-beat {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(12, 13, 18, 0.88);
}

.dialogue-beat--wide {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(79, 55, 35, 0.34), rgba(12, 13, 18, 0.92));
}

.dialogue-evidence {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 2px solid #ff8c00;
  background: rgba(255, 140, 0, 0.06);
  color: rgba(255, 224, 184, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.dialogue-choice {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(119, 181, 255, 0.45);
  border-radius: 999px;
  background: rgba(41, 70, 104, 0.35);
  color: #b9d9ff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.dialogue-beat blockquote p,
.nora-decision-branch p {
  max-width: none;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.78;
}

.dialogue-beat blockquote p + p {
  margin-top: 12px;
}

.dialogue-beat small {
  display: block;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  line-height: 1.65;
}

.nora-decision {
  margin-top: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(12, 13, 18, 0.94);
}

.nora-decision-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nora-decision-branch {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.nora-decision-branch--reject {
  border-color: rgba(242, 105, 121, 0.28);
  background: rgba(91, 40, 49, 0.14);
}

.nora-decision-branch--accept {
  border-color: rgba(105, 211, 159, 0.32);
  background: rgba(31, 91, 65, 0.16);
}

.nora-decision-branch--reject .dialogue-choice {
  border-color: rgba(242, 105, 121, 0.42);
  background: rgba(91, 40, 49, 0.24);
  color: #f6a7b0;
}

.nora-decision-branch--accept .dialogue-choice {
  border-color: rgba(105, 211, 159, 0.42);
  background: rgba(31, 91, 65, 0.24);
  color: #a6e8c6;
}

@media (max-width: 720px) {
  .nora-dialogue-intro,
  .dialogue-path,
  .nora-decision-branches {
    grid-template-columns: 1fr;
  }

  .dialogue-beat--wide {
    grid-column: auto;
  }

  .nora-dialogue {
    padding: 16px;
  }

  .nora-dialogue-intro,
  .dialogue-beat,
  .nora-decision {
    padding: 20px;
  }

  .nora-dialogue-intro blockquote {
    padding-left: 16px;
  }
}

.project-section--identity {
  max-width: none;
}

.project-section-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: #ff8c00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.identity-arc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.identity-stage {
  position: relative;
  min-height: 260px;
  padding: 26px;
  background: #111;
}

.identity-stage:not(:last-child)::after {
  content: '→';
  position: absolute;
  z-index: 2;
  top: 27px;
  right: -9px;
  color: #ff8c00;
  font-size: 16px;
}

.identity-stage--shadow {
  background: linear-gradient(145deg, #19121e, #100f12);
}

.identity-stage--choice {
  background: linear-gradient(145deg, #26170f, #111);
}

.identity-stage-index {
  display: block;
  margin-bottom: 54px;
  color: #ff8c00;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 30px;
  font-weight: 900;
}

.identity-stage h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.identity-stage p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.scenario-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 54px;
}

.scenario-page {
  position: relative;
  min-height: 470px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #151515;
  background-size: 100% 30px;
}

.scenario-page::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.07);
  filter: blur(4px);
}

.scenario-page--shadow::after {
  background: rgba(153, 87, 211, 0.11);
}

.scenario-page-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 76px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scenario-page h3 {
  margin: 0 0 24px;
  color: #fff;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 44px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.scenario-page p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.scenario-page strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .project-hero {
    padding: 120px 16px 48px;
  }

  .project-body {
    padding: 0 16px 60px;
  }

  .project-section {
    padding: 40px 0;
  }

  .project-synopsis {
    margin-top: 30px;
    padding: 22px 20px;
  }

  .project-hero-meta {
    gap: 10px 16px;
  }

  .project-hero-meta span + span::before {
    margin-right: 16px;
  }

  .project-showcase-grid {
    grid-template-columns: 1fr;
  }

  .project-metrics {
    grid-template-columns: 1fr;
  }

  .arcweave-canvas {
    padding: 28px 18px;
  }

  .arc-branches,
  .identity-arc,
  .scenario-pages {
    grid-template-columns: 1fr;
  }

  .arc-branches {
    gap: 44px;
  }

  .arc-branches::before,
  .arc-node--root::after,
  .arc-branch::before,
  .arc-choice::after,
  .identity-stage::after {
    display: none;
  }

  .identity-stage {
    min-height: 0;
  }

  .scenario-page {
    min-height: 0;
    padding: 28px;
  }

  .scenario-page-meta {
    margin-bottom: 44px;
  }
}


/* ─── Mobile: отключаем тяжёлые эффекты ─── */
@media (max-width: 768px) {
  .card-glass,
  .card-glass--plain {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(
      180deg,
      rgba(15, 8, 12, 0.45) 0%,
      rgba(15, 8, 12, 0.60) 100%
    );
  }

  .card:hover .card-glass,
  .card:hover .card-glass--plain {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(
      180deg,
      rgba(15, 8, 12, 0.15) 0%,
      rgba(15, 8, 12, 0.40) 100%
    );
  }

  .nav.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(18, 18, 18, 0.92);
  }
}


/* ─── Responsive ─── */
@media (max-width: 768px) {

  .nav,
  .projects,
  .footer-cta,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 120px 16px 60px;
  }

  .hero-avatar-initials {
    font-size: 26px;
  }

  .hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 14%;
    opacity: 0.4;
  }

  .hero-avatar.is-in {
    opacity: 0.9;
  }

  .hero-avatar img {
    object-position: center 85%;
  }

  .hero {
    overflow-x: clip;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-name-line {
    font-size: clamp(110px, 28vw, 220px);
    letter-spacing: -0.03em;
  }

  .hero-name-line--narrative {
    font-size: clamp(54px, 14vw, 110px);
  }

  .hero-sub {
    font-size: clamp(16px, 4.8vw, 19px);
    line-height: 1.55;
  }

  .cards {
    gap: 14px;
  }

  .projects-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0 32px;
  }

  .project-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
  }

  .project-filter {
    min-width: 0;
    padding: 9px 3px;
    overflow: hidden;
    border-radius: 8px;
    font-size: clamp(8px, 2.45vw, 10px);
    letter-spacing: -0.02em;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
  }

  .card-header {
    padding: 18px 20px 0;
  }

  .card-title-block {
    padding: 16px 20px 18px;
  }

  .card-image {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .card-title {
    font-size: 20px;
  }

  .footer-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .footer-wordmark {
    font-size: 23px;
    align-self: flex-start;
    margin-bottom: 22px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
  }

  .footer-links a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13px;
  }

  .footer-copy {
    display: block;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
  }

  .pico-easter-trigger {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }

  .nav-btn {
    padding: 11px 12px;
  }

  .nav-right {
    gap: 7px;
  }

  .nav-about-link {
    padding: 10px 6px;
    font-size: 11px;
  }

  .nav-btn span {
    display: none;
  }

  .nav-wordmark {
    font-size: 25px;
  }
}


/* ═══════════════════════════════════════════
   About page
   ═══════════════════════════════════════════ */

.about-hero {
  padding: 180px 40px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-hero-inner--text-only {
  grid-template-columns: minmax(0, 820px);
}

.narrative-focus {
  padding-top: 80px;
}

.narrative-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  overflow: hidden;
}

.narrative-focus-item {
  min-height: 250px;
  padding: 30px;
  background: #0e0e0e;
}

.narrative-focus-number {
  display: block;
  margin-bottom: 48px;
  color: #ff8c00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.narrative-focus-item h3 {
  margin-bottom: 14px;
  font-size: 21px;
}

.narrative-focus-item p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
}

.favorite-games-intro {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  line-height: 1.7;
}

.favorite-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.favorite-game {
  --game-accent: 255, 140, 0;
  position: relative;
  display: flex;
  min-height: 480px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(var(--game-accent), 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 0, rgba(var(--game-accent), 0.18), transparent 38%),
    linear-gradient(155deg, #151515, #090909 70%);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.favorite-game::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.05) 0%, rgba(5, 5, 5, 0.34) 34%, rgba(7, 7, 7, 0.92) 68%, #080808 100%),
    linear-gradient(135deg, rgba(var(--game-accent), 0.12), transparent 48%);
  pointer-events: none;
}

.favorite-game-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.favorite-game--rdr .favorite-game-art {
  object-position: center 25%;
}

.favorite-game--rain .favorite-game-art {
  object-position: center 36%;
  image-rendering: auto;
}

.favorite-game--disco .favorite-game-art {
  object-position: 48% center;
}

.favorite-game::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: 80px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(var(--game-accent), 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(var(--game-accent), 0.025),
    0 0 0 48px rgba(var(--game-accent), 0.018);
  pointer-events: none;
}

.favorite-game:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--game-accent), 0.48);
  box-shadow: 0 22px 60px rgba(var(--game-accent), 0.1);
}

.favorite-game:hover .favorite-game-art {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.05);
}

.favorite-game--rdr { --game-accent: 210, 70, 48; }
.favorite-game--rain { --game-accent: 126, 184, 115; }
.favorite-game--disco { --game-accent: 153, 116, 206; }

.favorite-game-index {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  padding: 6px 8px;
  border: 1px solid rgba(var(--game-accent), 0.3);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(var(--game-accent), 0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.favorite-game-copy {
  position: relative;
  z-index: 2;
  margin: auto 0 22px;
}

.favorite-game-focus {
  display: block;
  margin-bottom: 18px;
  color: rgba(var(--game-accent), 0.85);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.favorite-game h3 {
  margin-bottom: 22px;
  color: #fff;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.favorite-game p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.72;
  text-wrap: pretty;
}

.favorite-game-link {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.favorite-game:hover .favorite-game-link {
  color: rgb(var(--game-accent));
}

.about-hero-name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-hero-role {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  color: #FF8C00;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.about-hero-tagline {
  font-size: clamp(16px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.72;
  max-width: 580px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

.about-hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.about-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.about-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.about-section-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.about-section-kicker {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

/* Experience timeline */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.experience-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-years {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.experience-role {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  margin-bottom: 6px;
}

.experience-company {
  font-size: 15px;
  color: #FF8C00;
  font-weight: 500;
  margin-bottom: 16px;
}

.experience-desc {
  font-size: 16px;
  line-height: 1.76;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  max-width: 720px;
  text-wrap: pretty;
}

.experience-projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.experience-projects li {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 18px;
  position: relative;
}

.experience-projects li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.experience-projects li strong {
  color: #fff;
  font-weight: 600;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  padding: 0;
}

.skills-list li {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 20px;
  position: relative;
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1px;
  background: #FF8C00;
}

.skills-list li strong {
  color: #fff;
  font-weight: 600;
}

/* Other projects grid */
.other-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.other-project {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.other-project:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 140, 0, 0.32);
  background: rgba(255, 255, 255, 0.045);
}

.other-project-media {
  min-height: 112px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.other-project-video,
.other-project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.other-project-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 14px 36px 14px 14px;
  gap: 7px;
}

.other-project-type {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.other-project-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.other-project-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 15px;
  transform: translateY(-50%);
  transition: color 0.2s, transform 0.2s;
}

.other-project:hover .other-project-arrow {
  color: #ff8c00;
  transform: translate(2px, calc(-50% - 2px));
}

.other-project--disabled {
  cursor: default;
}

.all-projects-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.all-projects-link:hover {
  color: #FF8C00;
  border-color: #FF8C00;
}

/* About - mobile */
@media (max-width: 768px) {
  .about-hero {
    padding: 120px 16px 60px;
  }

  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-hero-photo {
    aspect-ratio: 4 / 5;
    max-width: 320px;
    margin: 0 auto;
  }

  .about-section {
    padding: 60px 16px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .other-projects {
    grid-template-columns: 1fr;
  }

  .other-project {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 100px;
  }

  .other-project-media {
    min-height: 100px;
  }

  .narrative-focus-grid {
    grid-template-columns: 1fr;
  }

  .favorite-games-grid {
    grid-template-columns: 1fr;
  }

  .favorite-game {
    min-height: 390px;
  }

  .narrative-focus-item {
    min-height: 0;
  }
}
