/* ==========================================================
   AILOS GAME STUDIO — STYLE SYSTEM
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ----------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  --black: #080808;
  --off-black: #111111;
  --white: #FFFFFF;
  --off-white: #F6F4F0;
  --paper: #EDE9E3;
  --gold: #B8943A;
  --gold-light: #D4AA55;
  --muted: #787063;
  --muted-light: #A09B94;
  --border: #DEDAD3;
  --border-dark: #C8C2B8;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Jost', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --nav-h: 80px;
  --section-pad: 120px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
}

/* ----------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--black);
  color: var(--white);
}

/* ----------------------------------------------------------
   TYPOGRAPHY SCALE
   ---------------------------------------------------------- */
.t-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 0.92;
}

.t-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.t-label--gold {
  color: var(--gold);
}

/* ----------------------------------------------------------
   UTILITIES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background-color: var(--off-white);
}

.section--dark {
  background-color: var(--off-black);
  color: var(--white);
}

.divider {
  width: 40px;
  height: 2px;
  background-color: var(--gold);
  display: block;
}

/* ----------------------------------------------------------
   CUSTOM SCROLLBAR
   ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--black);
  border-radius: 99px;
}

/* ----------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(0);
  /* black logo */
  transition: opacity 0.3s;
}

.nav__logo:hover {
  opacity: 0.7;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  transition: color 0.25s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
  color: var(--muted);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s var(--ease-out);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px 40px 40px;
  flex-direction: column;
  gap: 28px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
}

.nav__mobile .nav__link {
  font-size: 15px;
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.hero {
  min-height: 100svh;
  background-color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 50%, rgba(184, 148, 58, 0.06) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 80%, rgba(246, 244, 240, 0.8) 100%);
  pointer-events: none;
}

/* Grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
}

.hero__content {
  padding: 0 40px 0 max(40px, calc((100vw - 1320px) / 2 + 40px));
  position: relative;
  z-index: 2;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--black);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 52px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-primary {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  transition: background 0.3s, transform 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.btn-primary svg {
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s;
}

.btn-link:hover {
  color: var(--black);
}

.hero__visual {
  position: relative;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.05);
}

.hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
}

.hero__index {
  position: absolute;
  bottom: 40px;
  left: max(40px, calc((100vw - 1320px) / 2 + 40px));
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.hero__index-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted-light);
}

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

.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--border-dark);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollLine 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

/* ----------------------------------------------------------
   STATS STRIP
   ---------------------------------------------------------- */
.stats {
  background: var(--off-black);
  color: var(--white);
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  padding: 0 48px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats__item:first-child {
  padding-left: 0;
}

.stats__item:last-child {
  border-right: none;
}

.stats__num {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stats__num sup {
  font-size: 24px;
  color: var(--gold);
}

.stats__desc {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ----------------------------------------------------------
   ABOUT
   ---------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__number {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 20px;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 16px 0 32px;
}

.about__body {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 24px;
}

.about__body+.about__body {
  margin-bottom: 48px;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about__value {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.about__value:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.about__value-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.about__value-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.about__value-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.about__visual {
  position: relative;
}

.about__img-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: grayscale(20%);
}

.about__badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.about__badge-val {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--gold);
}

.about__badge-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ----------------------------------------------------------
   GAMES / PORTFOLIO
   ---------------------------------------------------------- */
.games__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.games__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-top: 16px;
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16/11;
  cursor: pointer;
}

.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.7s;
  filter: grayscale(10%);
}

.game-card:hover .game-card__img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.4s;
}

.game-card:hover .game-card__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.game-card__genre {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s 0.05s var(--ease-out), transform 0.4s 0.05s var(--ease-out);
}

.game-card:hover .game-card__genre {
  opacity: 1;
  transform: translateY(0);
}

.game-card__name {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card__studio {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.game-card__arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.3s;
}

.game-card:hover .game-card__arrow {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--gold);
}

.game-card__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}

/* ----------------------------------------------------------
   SERVICES
   ---------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
}

.service-card {
  background: var(--white);
  padding: 48px 36px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, background 0.4s;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  background: var(--off-white);
  border-color: var(--border-dark);
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted-light);
  margin-bottom: 40px;
}

.service-card__icon {
  margin-bottom: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.5;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.service-card__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   TEAM
   ---------------------------------------------------------- */
.team__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  position: relative;
}

.team-card__img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: var(--paper);
  position: relative;
}

.team-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.6s var(--ease-out), filter 0.6s;
}

.team-card:hover .team-card__avatar {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.team-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.team-card:hover .team-card__img-wrap::after {
  opacity: 1;
}

.team-card__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 0.04em;
  color: var(--border-dark);
  user-select: none;
}

.team-card__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.team-card__social {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.team-card__social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.team-card__social a:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* ----------------------------------------------------------
   CAREERS
   ---------------------------------------------------------- */
.careers__intro {
  max-width: 640px;
  margin-bottom: 64px;
}

.careers__intro p {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 20px;
}

.careers__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.career-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}

.career-item__apply {
  font-size: 11px !important;
  padding: 10px 20px !important;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   APPLY MODAL
   ---------------------------------------------------------- */
.apply-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.apply-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.apply-modal {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px 44px;
  max-width: 580px;
  width: 100%;
  position: relative;
  transform: translateY(28px);
  transition: transform 0.4s var(--ease-out);
  max-height: 88vh;
  overflow-y: auto;
}

.apply-overlay.open .apply-modal {
  transform: translateY(0);
}

.apply-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}

.apply-modal__close:hover {
  border-color: var(--black);
  color: var(--black);
}

.apply-modal__title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.apply-modal__position {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apply-success {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 14px;
  color: var(--green, #27AE60);
}

.career-item:hover {
  border-color: var(--black);
  background: var(--off-white);
  transform: translateX(8px);
}

.career-item__title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.career-item__dept {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.career-item__type {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.career-item__loc {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.career-item .arrow-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s var(--ease-out);
}

.career-item:hover .arrow-icon {
  color: var(--black);
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   CONTACT
   ---------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 16px 0 32px;
}

.contact__info p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 48px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__detail-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact__detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 2px;
}

.contact__detail-val {
  font-size: 15px;
  color: var(--black);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23787063' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-note {
  font-size: 12px;
  color: var(--muted-light);
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--off-black);
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  height: 36px;
  width: auto;
  filter: invert(1);
  opacity: 0.9;
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 28px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  text-decoration: none;
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__links a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------------------------
   SECTION HEADERS (SHARED)
   ---------------------------------------------------------- */
.section-header {
  margin-bottom: 64px;
}

.section-header__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header__label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.section-header__sub {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

/* ----------------------------------------------------------
   MARQUEE
   ---------------------------------------------------------- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--muted-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 80px;
  flex-shrink: 0;
}

.marquee-item::after {
  content: '✦';
  font-size: 10px;
  color: var(--gold);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ----------------------------------------------------------
   SCROLL REVEAL
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ----------------------------------------------------------
   RESPONSIVE — TABLET (≤1024px)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero__content {
    padding: 80px 40px 60px;
    max-width: 640px;
  }

  .hero__visual {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    order: -1;
  }

  .about__badge {
    bottom: -16px;
    left: -16px;
  }

  .games__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .team__grid {
    grid-template-columns: 1fr 1fr;
  }

  .careers__intro {
    max-width: 100%;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats__item {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
  }

  .stats__item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — MOBILE (≤768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .container {
    padding: 0 24px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta-desktop {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  .nav__inner {
    padding: 0 24px;
  }

  .hero__content {
    padding: 64px 24px 56px;
  }

  .hero__title {
    font-size: clamp(52px, 14vw, 80px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .games__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .games__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .team__grid {
    grid-template-columns: 1fr 1fr;
  }

  .team__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .career-item__type {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .team__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: clamp(48px, 16vw, 72px);
  }
}