/* ============================================================
   Albert A. — Portfolio
   Premium dark studio: charcoal, huge clean grotesk, rounded
   color-block work cards, electric-blue accent, custom cursor.
   ============================================================ */

:root {
  --bg: #1c1d20;
  --bg-soft: #232428;
  --text: #ffffff;
  --gray: #9a9da3;
  --rule: rgba(255, 255, 255, 0.16);
  --accent: #455ce9;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4.5vw, 56px);
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-100px, -100px);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              background 0.3s var(--ease);
}
.cursor span {
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor.on { width: 56px; height: 56px; }
.cursor.view {
  width: 96px;
  height: 96px;
  background: var(--accent);
  mix-blend-mode: normal;
}
.cursor.view span { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { display: none; }
}

/* ---------- header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}
.hdr.scrolled {
  background: rgba(28, 29, 32, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.01em;
}
.nav { display: flex; gap: clamp(18px, 3.4vw, 44px); }
.nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 400;
  padding-bottom: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: translateX(-50%) scale(1); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  overflow: hidden;
}
.hero-game {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 280px;
  margin-top: 44px;
}
#ship-it {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  /* touch drags must drive the paddle, not scroll the page */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.stats-band { border-bottom: 1px solid var(--rule); }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 36px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.hstat strong {
  display: block;
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hstat strong em {
  font-style: normal;
  color: var(--accent);
}
.hstat span {
  display: block;
  margin-top: 6px;
  color: var(--gray);
  font-size: 13px;
}

.hero-top {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(30px, 6vh, 70px);
}
.role {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 500;
}
.role-badge {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.role-arrow {
  font-size: 1.2em;
  color: var(--gray);
}
.hero-note {
  max-width: 380px;
  font-size: 15.5px;
  color: var(--gray);
  text-align: left;
}

/* giant name marquee */
/* ---------- sections ---------- */
.section { padding-top: clamp(100px, 15vh, 170px); }

.sec-label {
  font-size: 15.5px;
  font-weight: 400;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  margin-bottom: clamp(44px, 7vh, 80px);
}
.sec-label span { color: var(--gray); }

/* ---------- work ---------- */
.wgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 7vw, 110px) clamp(36px, 5vw, 80px);
}
.wcard-wrap:nth-child(even) { transform: translateY(clamp(40px, 8vh, 110px)); }

.wcard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* full-bleed gameplay GIF cards */
.wcard-full img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.wcard-full:hover img { transform: scale(1.045); }
.wcard-media {
  position: relative;
  width: 72%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.wcard:hover .wcard-media { transform: scale(1.045); }
.wcard-media span {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.85);
  user-select: none;
}
/* gameplay GIF / key art drop-in */
.wcard-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* muted rich card colors */
.bg-elevator  { background: #4a6472; }
.bg-canvas    { background: #6f6d55; }
.bg-rbr       { background: #7d6a8f; }
.bg-doz       { background: #4c5a41; }
.bg-cocomelon { background: #8a4a44; }
.bg-nancy     { background: #455270; }
.bg-overrush  { background: #6e4a68; }
.bg-zminer    { background: #7a5a38; }
.bg-nda       { background: repeating-linear-gradient(-45deg, #2c2d31 0 22px, #35363b 22px 44px); }
.bg-neto      { background: #8a743c; }
.bg-milky     { background: #3f5e5c; }
.bg-coinsort  { background: #514678; }
.bg-queens    { background: #7a5560; }
.bg-monsters  { background: #5a4a63; }
.bg-shapes    { background: #4f6478; }

.wmeta { padding-top: 22px; }
.wmeta h3 {
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 12px;
}
.wmeta p {
  font-size: 14.5px;
  color: var(--gray);
}

/* ---------- about ---------- */
.statement {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.14;
  max-width: 1000px;
  margin-bottom: clamp(40px, 6vh, 70px);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: 1000px;
}
.about-grid p { color: var(--gray); font-size: 16.5px; }

/* ---------- awards ---------- */
.alist { list-style: none; }
.alist li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding: 26px 4px;
  transition: padding 0.3s var(--ease), background 0.3s ease;
}
.alist li:first-child { border-top: 1px solid var(--rule); }
.alist li:hover { padding-left: 20px; background: var(--bg-soft); }
.alist h3 {
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.alist p { font-size: 14.5px; color: var(--gray); }
.alist span { font-size: 14.5px; color: var(--gray); }

/* ---------- footer ---------- */
.foot {
  margin-top: clamp(110px, 16vh, 190px);
  padding: clamp(70px, 10vh, 120px) 0 30px;
  background: var(--bg-soft);
  border-radius: 40px 40px 0 0;
}
.foot-title {
  font-size: clamp(52px, 8.6vw, 130px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.foot-rule {
  position: relative;
  border-bottom: 1px solid var(--rule);
  margin: clamp(40px, 7vh, 80px) 0 clamp(60px, 9vh, 110px);
}
.foot-cta {
  position: absolute;
  right: clamp(10px, 8vw, 140px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(130px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  transition: transform 0.4s var(--ease), background 0.3s ease;
}
.foot-cta:hover { transform: translateY(-50%) scale(1.08); background: #3346c9; }

.foot-pills { display: flex; flex-wrap: wrap; gap: 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.pill svg { width: 17px; height: 17px; flex: none; }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(60px, 9vh, 100px);
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray);
}

/* ---------- game modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-panel {
  position: relative;
  width: min(680px, 100%);
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 44px);
  animation: modal-pop 0.35s var(--ease);
}
@keyframes modal-pop {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-panel { animation: none; }
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}
.modal-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  padding-right: 56px;
}
.modal-meta {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--gray);
}
.modal-body { margin-top: 28px; }

.store-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.store-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 600;
  font-size: 16.5px;
}
.store-btn small {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.video-wrap {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* only cards that open something show the pointer/View cursor */
.wcard { cursor: default; }
.wcard[data-game] { cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wgrid { grid-template-columns: 1fr; gap: 56px; }
  .wcard-wrap:nth-child(even) { transform: none; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .alist li { grid-template-columns: 1fr auto; }
  .alist p { grid-column: 1; }
  .alist span { grid-row: 1; grid-column: 2; }
}

@media (max-width: 600px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13.5px; }
  .brand { font-size: 13.5px; }
  .foot-cta {
    position: static;
    transform: none;
    width: auto;
    aspect-ratio: auto;
    border-radius: 999px;
    padding: 16px 30px;
    display: inline-flex;
    margin: 26px 0 0;
  }
  .foot-cta:hover { transform: scale(1.04); }
  .foot-rule { border-bottom: none; margin-bottom: 40px; }
  .foot { border-radius: 24px 24px 0 0; }
}
