:root {
  color-scheme: light;
  --ink: #151720;
  --muted: #4f5868;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(21, 23, 32, 0.14);
  --pink: #ff007f;
  --cyan: #00aeca;
  --card-width: min(84vw, 640px);
  --card-scale: 1;
  --active-scale: 1;
  --neighbor-scale: 0.72;
  --card-spread: clamp(390px, 58vw, 760px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: #080817;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

button,
a {
  font: inherit;
}

.intro-section,
.exhibit-section {
  min-height: 100svh;
  scroll-snap-align: start;
}

.intro-section {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(205px, 28vh, 280px) clamp(28px, 6vw, 80px) clamp(28px, 6vw, 80px);
  background:
	linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.96) 72%, rgba(255, 255, 255, 0) 100%),
	radial-gradient(circle at 15% 15%, rgba(255, 56, 214, 0.2), transparent 34%),
	radial-gradient(circle at 82% 30%, rgba(0, 229, 255, 0.2), transparent 36%);
}

.intro-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: min(24vh, 220px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
}

.intro-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.intro-wordmark {
  position: relative;
  z-index: 1;
  justify-self: end;
  margin-top: -18px;
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
}

.intro-wordmark span {
  display: block;
  background: linear-gradient(135deg, #00e5ff 0%, #ff38d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-kicker {
  margin: 0 0 14px;
  color: #5d6576;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-copy h1 {
  width: max-content;
  margin: 2em 0 0 0;
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.intro-copy p:not(.intro-kicker) {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: #4f5868;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.55;
}

.intro-link {
  min-height: 44px;
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #10131d;
  border-radius: 999px;
  color: #10131d;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.intro-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.92), rgba(255, 56, 214, 0.86));
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.28), 0 10px 26px rgba(255, 56, 214, 0.2);
}

.exhibit-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.sky-cylinder,
.background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sky-cylinder {
  z-index: 0;
  display: block;
}

.background {
  z-index: 1;
  background:
	linear-gradient(115deg, rgba(255, 0, 127, 0.34), rgba(0, 229, 255, 0.3));
  pointer-events: none;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
	radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
	rgba(255, 255, 255, 0.08);
}

.site-header {
  width: 100%;
  min-height: 138px;
  padding: 26px 0 58px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0) 100%);
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
}

.site-icon {
  width: clamp(68px, 11vw, 112px);
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.site-button-bar{
    position: absolute;
    right: 5%;
    top: 25%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.site-button-bar>a{
    z-index: 101;
}

.page-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  perspective: 980px;
  perspective-origin: 50% 48%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.project-list {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.page-shell:active {
  cursor: grabbing;
}

#swipe-indicator{
    position: absolute;
    top: 20%;
    color: white !important;
    font-weight: bold;
    display: flex;
    font-size: x-large;
    align-items: center;
}

.project-card {
  --card-offset: 0;
  --state-scale: 0.5;
  --card-x: calc(var(--card-offset) * var(--card-spread));
  --card-turn: calc(var(--card-offset) * -42deg);
  --status-color: #10131d;
  --status-soft: rgba(16, 19, 29, 0.08);
  position: absolute;
  left: calc(var(--card-width) / -2);
  top: -245px;
  width: var(--card-width);
  box-sizing: border-box;
  min-height: 620px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  background:
	linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
	rgba(255, 255, 255, 0.68);
  box-shadow:
	inset 0 1px 0 rgba(255, 255, 255, 0.74),
	0 26px 90px rgba(5, 7, 18, 0.32),
	0 0 42px rgba(0, 229, 255, 0.14);
  backdrop-filter: blur(10px) saturate(1.22);
  transform: translateX(var(--card-x)) rotateY(var(--card-turn)) scale(var(--card-scale)) scale(var(--state-scale));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  overflow: hidden;
  transition:
    transform 360ms cubic-bezier(.2, .72, .22, 1),
    opacity 260ms ease,
    filter 300ms ease;
  will-change: transform, opacity, filter;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(90deg, var(--status-soft), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, var(--status-soft), rgba(255, 255, 255, 0) 34%);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card.is-active {
  --state-scale: var(--active-scale);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.project-card.is-neighbor {
  --state-scale: var(--neighbor-scale);
  opacity: 0.34;
  filter: blur(8px) saturate(0.86);
  pointer-events: auto;
  cursor: pointer;
}

.project-card.is-neighbor a,
.project-card.is-neighbor button {
  pointer-events: none;
}

.project-card[data-status="finished"] {
  --status-color: #00aeca;
  --status-soft: rgba(0, 229, 255, 0.16);
}

.project-card[data-status="playable"] {
  --status-color: #26c96f;
  --status-soft: rgba(38, 201, 111, 0.16);
}

.project-card[data-status="tech-demo"] {
  --status-color: #ff38d6;
  --status-soft: rgba(255, 56, 214, 0.16);
}

.project-media {
  width: min(100%, max-content);
  max-width: 100%;
  height: clamp(280px, 42vh, 390px);
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(21, 23, 32, 0.12);
  background:
	linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(255, 56, 214, 0.14)),
	rgba(8, 8, 23, 0.2);
  box-shadow: 0 12px 38px rgba(5, 7, 18, 0.16);
  position: relative;
}

.project-media img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  -webkit-user-drag: none;
  user-select: none;
}

.project-media-backdrop {
  position: absolute !important;
  inset: -18px;
  z-index: 0 !important;
  width: calc(100% + 36px) !important;
  height: calc(100% + 36px) !important;
  max-width: none !important;
  object-fit: cover !important;
  filter: blur(18px) saturate(1.24);
  opacity: 0.58;
  transform: scale(1.04);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--status-color);
  border-radius: 999px;
  background: var(--status-soft);
  color: #10131d;
  box-shadow: 0 0 18px var(--status-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 12px var(--status-color);
}

.download-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #10131d;
  border-radius: 999px;
  color: #10131d;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.download-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.92), rgba(255, 56, 214, 0.86));
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.38), 0 10px 26px rgba(255, 56, 214, 0.24);
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.project-description {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}


@keyframes cardGlow {
  42% {
	box-shadow:
	  inset 0 1px 0 rgba(255, 255, 255, 0.74),
	  0 26px 90px rgba(5, 7, 18, 0.32),
	  0 0 72px rgba(0, 229, 255, 0.62),
	  0 0 96px rgba(255, 56, 214, 0.28);
  }
}

@media (max-width: 560px) {
  :root {
	--card-width: min(90vw, 460px);
	--card-scale: 1;
	--active-scale: 0.94;
	--neighbor-scale: 0.58;
	--card-spread: clamp(260px, 78vw, 410px);
  }

  .site-header {
	min-height: 118px;
	padding-top: 20px;
  }

  .intro-section {
    grid-template-columns: 1fr;
  }

  .intro-wordmark {
    order: -1;
    justify-self: start;
    margin-top: 0;
    text-align: left;
    font-size: clamp(3.2rem, 18vw, 5.8rem);
  }

  .intro-copy h1 {
    margin-top: clamp(28px, 8vh, 56px);
  }

  .project-card {
	padding: 16px;
	top: -285px;
	min-height: 560px;
  }

  .project-media {
	height: clamp(240px, 38vh, 330px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
	transition-duration: 1ms;
	animation-duration: 1ms !important;
  }
}
