/* Landing page. The hero is a tall scroll track with a sticky stage inside —
   scroll progress drives the rotation, so swapping the placeholder for a
   three.js canvas later touches only what reads the progress value. */

.hero-track {
  position: relative;
  height: 300vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, #23233a 0%, transparent 60%),
    linear-gradient(180deg, #101018 0%, #0d0d12 100%);
  opacity: var(--hero-bg-opacity, 1);
}

.hero-subject {
  position: relative;
  width: min(52vh, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-subject img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 24px 50px rgb(0 0 0 / 0.6));
}

/* Hard cut, not a cross-dissolve. The angles are 90° apart, so fading
   between them double-exposes two poses instead of reading as rotation. */

.hero-subject img.active {
  opacity: 1;
}

/* Podium: a flat ellipse plus a soft cast shadow. Cheap, and it grounds
   the subject so it doesn't read as floating in void. */
.podium {
  position: absolute;
  bottom: -4%;
  left: 50%;
  translate: -50% 0;
  width: 62%;
  height: 9%;
  border-radius: 50%;
  background: linear-gradient(180deg, #2b2b3d 0%, #16161f 100%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.7), inset 0 2px 0 rgb(255 255 255 / 0.06);
}

.hero-name {
  position: absolute;
  top: 8vh;
  text-align: center;
  pointer-events: none;
  opacity: var(--hero-name-opacity, 1);
}

.hero-name h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 92px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-name p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 18px);
  letter-spacing: 0.02em;
}

.hero-cta {
  position: absolute;
  bottom: 7vh;
  display: grid;
  justify-items: center;
  gap: 10px;
  opacity: var(--hero-cta-opacity, 0);
  translate: 0 var(--hero-cta-y, 14px);
  transition: opacity 0.25s ease, translate 0.25s ease;
  pointer-events: var(--hero-cta-events, none);
}

.scroll-nudge {
  position: absolute;
  bottom: 7vh;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: var(--hero-nudge-opacity, 1);
  transition: opacity 0.2s;
}

/* --- page below the hero --- */

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

h2.section-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.6;
  color: #d5d5df;
  max-width: 62ch;
  margin: 0 0 18px;
}

.lede.muted {
  color: var(--muted);
  font-size: 17px;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.game-card img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

.game-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.work {
  display: grid;
  gap: 14px;
}

.work-item {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-left: 2px solid var(--line);
  transition: border-color 0.16s;
}

.work-item:hover {
  border-left-color: var(--accent);
}

.work-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.work-item .role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.work-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

footer {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .hero-subject img,
  .hero-cta,
  .game-card {
    transition: none;
  }
}
