:root {
  --bg: #04050a;
  --panel: rgba(6, 8, 15, .88);
  --line: rgba(152, 112, 255, .22);
  --text: #f4f3fb;
  --muted: #a8a8b8;
  --accent: #a579ff;
  --accent-hot: #ff60e8;
  --max: 1920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 18%, rgba(151, 76, 255, .18), transparent 32%),
    radial-gradient(circle at 14% 78%, rgba(255, 96, 232, .12), transparent 28%),
    #04050a;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(115deg, transparent 0 34%, rgba(151, 76, 255, .22) 34.2%, transparent 34.7% 100%),
    linear-gradient(65deg, transparent 0 62%, rgba(151, 76, 255, .16) 62.2%, transparent 62.8% 100%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 78px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 5, 10, .78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 46px;
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(244, 243, 251, .78);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand-mark.has-logo {
  border: 0;
  background: transparent;
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
}

.brand-mark.has-logo img {
  inset: 0;
}

.brand-mark.has-logo span,
.brand-mark img + span {
  display: none;
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

.brand strong span {
  font-size: 1.22em;
  line-height: 0;
}

.brand small {
  color: var(--muted);
  font-size: clamp(9px, .8vw, 12px);
  font-weight: 800;
  letter-spacing: .18em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 72px);
}

.main-nav a {
  position: relative;
  padding: 30px 0 28px;
  color: #dddcec;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
}

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(78px + clamp(20px, 3vw, 44px)) clamp(22px, 4.5vw, 72px) clamp(20px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(420px, 58%);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
  padding: clamp(28px, 4vw, 56px) 0;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(165, 121, 255, .28);
}

.hero-copy::before {
  width: 120px;
  height: 120px;
  top: 8%;
  right: 5%;
  transform: rotate(45deg);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.hero-copy::after {
  width: 180px;
  height: 1px;
  left: -26px;
  bottom: 18%;
  background: rgba(165, 121, 255, .2);
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(48px, 4.7vw, 84px);
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  color: var(--accent-hot);
  text-shadow: 0 0 34px rgba(255, 96, 232, .2);
}

.hero-copy p {
  max-width: 470px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.58;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.hero-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(165, 121, 255, .34);
  background: rgba(8, 10, 20, .62);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-links img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  background: transparent;
}

/* Hero showreel: image 2:1 on landscape screens, info bar under it */
.hero-media {
  align-self: center;
  width: 100%;
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid rgba(165, 121, 255, .18);
  background:
    linear-gradient(135deg, rgba(165, 121, 255, .08), rgba(255, 96, 232, .04)),
    rgba(10, 12, 22, .56);
}

.hero-strip {
  display: flex;
  height: 100%;
  transition: transform .9s cubic-bezier(.7, 0, .2, 1);
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-slide .tile-ph {
  position: absolute;
  inset: clamp(18px, 3vw, 40px);
  display: grid;
  place-items: center;
  border: 1px dashed rgba(244, 243, 251, .2);
  color: rgba(244, 243, 251, .36);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Caption: small label top-left, so it never covers game logos (usually bottom-left) */
.hero-cap {
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
  bottom: auto;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 10px 15px 11px;
  border: 1px solid rgba(165, 121, 255, .4);
  background: rgba(4, 5, 10, .76);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: clamp(12px, .9vw, 15px);
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: none;
  transition: border-color .15s, background .15s;
}

.hero-cap-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-cap-main b {
  font-weight: 900;
}

.hero-cap-genre {
  color: #c9b6ff;
  font-size: clamp(10px, .7vw, 11px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  max-width: 13.5em; /* long genres wrap to 2 lines so the label stays compact */
  text-wrap: balance;
}

.hero-cap-genre:empty {
  display: none;
}

.hero-cap:not([href]) .hero-cap-arrow {
  display: none;
}

/* Prev / next arrows on the image sides */
.hero-arrow {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(165, 121, 255, .45);
  background: rgba(4, 5, 10, .62);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, border-color .15s, background .15s, transform .15s;
}

.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.hero-frame:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

.hero-arrow:hover {
  border-color: var(--accent-hot);
  background: rgba(40, 14, 54, .86);
}

.hero-arrow.prev:hover { transform: translateX(-2px); }
.hero-arrow.next:hover { transform: translateX(2px); }

@media (max-width: 620px) {
  .hero-arrow { width: 38px; height: 38px; top: calc(50% - 19px); font-size: 16px; }
}

/* Per-slide corner (HERO label), so the label never covers the cover's logo */
.hero-cap[data-at="top-right"]    { left: auto; right: 16px; }
.hero-cap[data-at="bottom-left"]  { top: auto; bottom: 16px; }
.hero-cap[data-at="bottom-right"] { top: auto; bottom: 16px; left: auto; right: 16px; }

/* With a url the label becomes a link to the project site */
.hero-cap[href] {
  pointer-events: auto;
  cursor: pointer;
}

.hero-cap[href]:hover,
.hero-cap[href]:focus-visible {
  border-color: var(--accent-hot);
  background: rgba(40, 14, 54, .86);
  outline: none;
}

.hero-cap-arrow {
  color: var(--accent-hot);
  font-size: 1.15em;
  line-height: 1;
  transition: transform .15s;
}

.hero-cap[href]:hover .hero-cap-arrow {
  transform: translate(2px, -2px);
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 14px 2px 0;
}

.hero-role {
  display: grid;
  gap: 4px;
}

.hero-role small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-role span {
  color: var(--text);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 700;
  letter-spacing: .02em;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.hero-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

/* Switcher: a short track, the active one fills up until the next project */
.hero-dots button {
  position: relative;
  width: 34px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dots button::before,
.hero-dots button i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 4px;
}

.hero-dots button::before {
  background: rgba(244, 243, 251, .22);
  transition: background .2s;
}

.hero-dots button:hover::before {
  background: rgba(244, 243, 251, .45);
}

.hero-dots button i {
  display: block;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
}

.hero-dots button.active {
  width: 64px;
}

.hero-media.is-paused .hero-dots button.active i {
  opacity: .6;
}

@media (orientation: portrait) {
  .hero-frame {
    aspect-ratio: 4 / 3;
  }
}

.content-placeholder {
  max-width: var(--max);
  min-height: clamp(260px, 34vh, 420px);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 5, 10, .22);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px clamp(22px, 4.5vw, 56px) 32px;
  border-bottom: 1px solid var(--line);
}

.tech-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px clamp(24px, 4vw, 56px);
  min-height: 72px;
  padding: 18px 26px;
  border: 1px solid rgba(165, 121, 255, .16);
  background: rgba(6, 10, 22, .84);
}

.tech-panel h2,
.tech-panel .tech-label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  letter-spacing: .06em;
  font-weight: 900;
  text-transform: uppercase;
}

.tech-panel .tech-label {
  color: var(--accent);
}

.tech-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(18px, 2.2vw, 34px);
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.tech-item img {
  width: 39px;
  height: 39px;
  display: block;
  object-fit: contain;
  background: transparent;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1fr) minmax(120px, .35fr);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
  padding: 44px 10px 4px;
}

.footer-intro h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.footer-links a {
  display: grid;
  grid-template-columns: 28px 112px minmax(260px, 1fr);
  align-items: center;
  column-gap: 18px;
  color: var(--text);
  text-decoration: none;
}

.footer-links img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  background: transparent;
}

.footer-links strong {
  font-size: 15px;
  letter-spacing: .03em;
  white-space: nowrap;
}

.footer-links span {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.footer-mark {
  justify-self: end;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: .02em;
}

.footer-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
}

.footer-mark.has-footer-logo span,
.footer-mark img + span {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 78px;
    gap: 20px;
    flex-wrap: wrap;
    padding-block: 16px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .main-nav a {
    padding: 8px 0;
  }

  .hero {
    padding-top: 128px;
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-media {
    margin-bottom: 28px;
  }

  .tech-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }


  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-mark {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .brand strong {
    max-width: 230px;
    white-space: normal;
  }

  .main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-links a {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .site-footer {
    padding-inline: 16px;
  }

  .tech-panel {
    padding: 16px;
  }

  .footer-links a {
    grid-template-columns: 24px 1fr;
    gap: 8px 12px;
  }

  .footer-links span {
    grid-column: 2;
  }
}
