:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --accent: #ea580c;
  --bg-soft: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #6b7280;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: var(--bg-soft);
  --surface-soft-2: #eef2ff;
  --navy-950: #08101f;
  --navy-900: var(--text-dark);
  --navy-800: #162033;
  --navy-700: #334155;
  --accent-strong: var(--primary-dark);
  --accent-soft: rgba(37, 99, 235, 0.12);
  --cta: var(--accent);
  --ink-900: var(--text-dark);
  --ink-700: var(--text-muted);
  --ink-500: #94a3b8;
  --border-soft: #e5e7eb;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 22px 54px rgba(15, 23, 42, 0.08);
  --radius-card: 20px;
  --radius-shell: 32px;
  --section-pad: 96px;
  --container: min(1280px, calc(100% - 48px));
  --header-height: 64px;
  /* Single offset for hash nav: sticky header only (avoid stacking with scroll-margin) */
  --anchor-offset: var(--header-height);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Targeted transitions only — avoids painting every element on any state change */
a,
button,
input,
textarea,
.button,
.nav-link,
.card,
.logo-img,
.footer-link,
.footer-contact-link,
.footer-social-link,
.site-header {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity, filter;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--ink-900);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--primary);
}

/* Solid CTA links: keep label color (global a:hover would turn text blue) */
a.button-primary,
a.button-primary:hover,
a.button-primary:focus-visible,
a.button-secondary,
a.button-secondary:hover,
a.button-secondary:focus-visible,
a.header-cta,
a.header-cta:hover,
a.header-cta:focus-visible {
  color: #ffffff;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.app-status {
  padding: 14px 20px;
  background: var(--navy-900);
  color: #ffffff;
  text-align: center;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  width: 100%;
  max-width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  border-color: rgba(17, 32, 58, 0.08);
  box-shadow: 0 16px 40px rgba(17, 32, 58, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.header-bar {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-image-only {
  width: auto;
}

.logo-img {
  width: auto;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(13, 29, 57, 0.14));
  transition: transform 0.2s ease;
}

.brand:hover .logo-img,
.brand:focus-visible .logo-img {
  transform: translateY(-2px) scale(1.02);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  color: #ffffff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--navy-900);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;

}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.08);
  box-shadow: none;
}

.button-primary {
  background: var(--cta);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
}

.button-secondary {
  border-color: transparent;
  background: var(--primary);
  color: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.button-ghost {
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.08);
  color: var(--navy-900);
}

.button-link {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
}

.button-link:hover,
.button-link:focus-visible,
.btn-link:hover,
.btn-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  box-shadow: none;
  transform: none;
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.8rem;
}

.header-cta {
  flex-shrink: 0;
  background: var(--cta);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(17, 32, 58, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy-900);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: var(--section-pad) 0;
  overflow-x: clip;
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Hero is always visible — no content-visibility deferral */
.hero-section,
.hero {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.section-alt {
  background: var(--surface-soft);
}

.page-main > .section {
  position: relative;
  /* scroll-padding on html handles header clearance; avoid double offset */
  scroll-margin-top: 0;
}

.hero-section#hero {
  scroll-margin-top: 0;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.section-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.section-title,
.hero-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.section-title {
  font-size: clamp(1.375rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.section-description,
.hero-description,
.team-summary,
.contact-form-text {
  margin: 0;
  color: var(--ink-700);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.8;
}

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

.section-heading-center {
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-heading-invert .section-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.section-heading-invert .section-title,
.section-heading-invert .section-description {
  color: #ffffff;
}

.section-heading-invert .section-description {
  color: rgba(255, 255, 255, 0.76);
}

.hero-section,
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 84px;
  background:
    radial-gradient(circle at 14% 10%, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 15%;
  top: 50%;
  width: min(32vw, 400px);
  height: min(32vw, 400px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-layer-left {
  top: -220px;
  left: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 72%);
}

.hero-layer-right {
  right: -140px;
  bottom: -200px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(13, 29, 57, 0.12), transparent 70%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(420px, calc(100svh - var(--header-height) - 80px), 860px);
}

.hero-copy {
  max-width: 540px;
  padding: 24px 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.82;
}

.hero-title-line {
  display: block;
}

.hero-title-line.is-accent {
  color: var(--primary);
}

.hero-description {
  max-width: 520px;
  margin-top: 24px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: clamp(340px, 55vw, 760px);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-large {
  right: 3%;
  bottom: 90px;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0) 72%);
}

.hero-glow-small {
  top: 70px;
  right: 14%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.14), rgba(29, 78, 216, 0) 74%);
}

.hero-character-shell {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100%, 720px);
  height: clamp(360px, 70vw, 860px);
  padding: 36px 18px 0;
  animation: heroFloat 4s ease-in-out infinite;
  will-change: auto;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-character-shell.is-empty {
  display: none;
}

.hero-character-shell::before {
  content: "";
  position: absolute;
  inset: auto 4% 34px;
  height: 84%;
  border-radius: 44% 56% 34% 34% / 42% 46% 22% 18%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.hero-character {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 72px rgba(13, 29, 57, 0.22));
  transition: transform 0.2s ease-out, filter 0.2s ease;
}

.about-section,
.featured-games-section {
  background: var(--surface);
}

.games-section,
.team-section {
  background: var(--surface-soft);
}

.services-section {
  background: var(--surface);
}

.about-layout,
.mission-layout {
  display: grid;
  align-items: center;
  gap: 64px;
}

.about-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.about-copy-column {
  width: 100%;
  max-width: 640px;
}

.about-copy-column .section-heading {
  gap: 16px;
  max-width: 62ch;
}

.about-copy-column .section-title {
  max-width: 16ch;
  line-height: 1.08;
}

.about-copy-column .section-description {
  max-width: 62ch;
  font-size: clamp(0.96rem, 1.4vw, 1.05rem);
  line-height: 1.78;
}

.portrait-card,
.info-card,
.service-card,
.game-card,
.team-card,
.contact-form,
.mission-highlight,
.mission-visual-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.portrait-card:hover,
.portrait-card:focus-within,
.info-card:hover,
.info-card:focus-within,
.service-card:hover,
.service-card:focus-within,
.game-card:hover,
.game-card:focus-within,
.team-card:hover,
.team-card:focus-within,
.contact-form:hover,
.contact-form:focus-within,
.mission-highlight:hover,
.mission-highlight:focus-within,
.mission-visual-card:hover,
.mission-visual-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.portrait-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(380px, 50vw, 610px);
  padding: 24px 24px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.1), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 72%);
}

.portrait-card.is-empty {
  display: none;
}

.portrait-image {
  width: auto;
  height: clamp(340px, 46vw, 600px);
  object-fit: contain;
  filter: drop-shadow(0 34px 56px rgba(13, 29, 57, 0.14));
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.info-card {
  min-height: 100%;
  padding: 22px;
  background: var(--surface-soft-2);
}

.about-copy-column .info-grid {
  gap: 18px;
  margin-top: 28px;
}

.info-card-title {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.04rem;
  font-weight: 800;
}

.info-card-text {
  margin: 10px 0 0;
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Services — outer white section, inner tinted card (Featured / Work style) ── */

.services-grid {
  display: flex;
  gap: 24px;
  margin-top: 0;
}

.services-aaa {
  position: relative;
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #e8eeff 60%, #f8fafc 100%);
  overflow: hidden;
}

.services-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: end;
  min-height: auto;
  padding: 48px 56px 44px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #e8eeff 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;
  box-shadow:
    0 4px 24px rgba(37, 99, 235, 0.1),
    0 32px 72px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.services-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 90% 20%, rgba(59, 130, 246, 0.12), transparent 55%);
  pointer-events: none;
}

.services-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45%;
  height: 50%;
  background: radial-gradient(ellipse at 20% 100%, rgba(99, 102, 241, 0.08), transparent 55%);
  pointer-events: none;
}

.services-character {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: 360px;
  z-index: 2;
  justify-self: center;
  align-self: end;
}

.services-character img {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  transform: none;
  transform-origin: center bottom;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.18));
}

.services-character.is-empty {
  display: none;
}

.services-content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.services-content .section-heading {
  align-items: flex-start;
  margin-bottom: 0;
  padding-left: 0;
  gap: 16px;
}

.services-content .section-kicker {
  color: var(--text-muted);
}

.services-content .section-title {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--navy-900);
}

.services-content .section-description {
  max-width: 520px;
  color: var(--ink-700);
  font-size: clamp(0.95rem, 1.3vw, 1.02rem);
  line-height: 1.72;
}

.services-slider-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 0 0 4px;
}

.services-slider {
  display: flex;
  gap: 28px;
  margin-top: 0;
  padding: 10px 0 8px;
  width: max-content;
  transform: translateX(0);
  transition: transform 0.5s ease;
  cursor: grab;
  touch-action: pan-y;
}

.services-slider.is-dragging {
  transition: none;
  cursor: grabbing;
  user-select: none;
}

.services-slider .service-panel {
  flex: 0 0 min(460px, calc(100vw - 100px));
  min-width: min(460px, calc(100vw - 100px));
  min-height: 260px;
  height: auto;
  padding: 32px 32px 38px;
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.services-slider .service-panel:not(.active) {
  opacity: 0.7;
  transform: scale(0.96);
}

.services-slider .service-panel.active {
  opacity: 1;
  transform: scale(1);
}

.services-slider .service-panel:hover,
.services-slider .service-panel:focus-within {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow:
    0 8px 28px rgba(37, 99, 235, 0.14),
    0 28px 56px rgba(15, 23, 42, 0.14);
}

.services-slider .service-panel-index {
  position: absolute;
  bottom: 6px;
  right: 16px;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: var(--navy-900);
  opacity: 0.06;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.services-slider .service-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.15);
}

.services-slider .service-title {
  margin: 0;
  max-width: 18ch;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy-900);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.services-slider .service-text {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--ink-700);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px 28px;
  background: #ffffff;
}

.service-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 16px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.15);
}

.service-icon::before {
  display: none;
}

.service-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  grid-area: 1 / 1;
  z-index: 1;
  color: #ffffff;
  min-width: 100%;
  min-height: 100%;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.service-icon-emoji {
  position: relative;
  grid-area: 1 / 1;
  z-index: 1;
  font-size: 1.65rem;
  line-height: 1;
}

.service-icon-has-image {
  padding: 0;
  background: var(--surface-soft-2) !important;
}

.service-icon-has-image.is-loaded .service-icon-fallback {
  opacity: 0;
}

.service-icon img,
.service-icon-image {
  position: relative;
  grid-area: 1 / 1;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  transform-origin: center;
  filter: none;
}

.service-card:hover .service-icon-image,
.service-card:focus-within .service-icon-image {
  transform: scale(1.08);
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.2);
}

.service-title {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.08rem;
  font-weight: 800;
}

.service-text {
  margin: 12px 0 0;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.mission-section {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 26%),
    linear-gradient(135deg, #0b1220 0%, #101929 58%, #131e31 100%);
}

.mission-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.mission-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.mission-highlight {
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.mission-highlight-title {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.mission-highlight-text {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.mission-visual-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(400px, 50vw, 680px);
  padding: 28px 26px 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 38%);
}

.mission-visual-card.is-empty {
  display: none;
}

.mission-image {
  width: auto;
  height: clamp(360px, 46vw, 640px);
  object-fit: contain;
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, 0.28));
}

.featured-games-section {
  padding-bottom: 64px;
}

.featured-game-shell {
  margin-top: 28px;
}

.featured-game,
.featured-card,
.featured-game-card {
  position: relative;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #e8eeff 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow:
    0 4px 16px rgba(37, 99, 235, 0.06),
    0 24px 56px rgba(15, 23, 42, 0.1);
}

.featured-card:hover,
.featured-card:focus-within {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.1),
    0 32px 64px rgba(15, 23, 42, 0.14);
}

.featured-game-layout {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.featured-game-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-game h3,
.featured-title,
.featured-game-title {
  margin: 0 0 8px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 52px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 40%, #3b82f6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.2));
}

.featured-game-text {
  margin: 0;
  max-width: 480px;
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.8;
}

.featured-game-image,
.featured-game-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.featured-game-image::after,
.featured-game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.featured-banner,
.featured-game-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  position: relative;
  z-index: 0;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-game-banner,
.featured-card:focus-within .featured-game-banner {
  transform: scale(1.06);
}

/* ── Video Preview ── */
.featured-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.45s ease;

  pointer-events: none;
}

.is-video-active .featured-video-preview {
  opacity: 1;
}

.featured-video-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(15, 23, 42, 0.35) 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.is-video-active .featured-video-gradient {
  opacity: 1;
}

.featured-video-play-icon {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.has-video-preview .featured-video-play-icon {
  opacity: 0;
}

.featured-card:hover .has-video-preview:not(.is-video-active) .featured-video-play-icon,
.featured-card:focus-within .has-video-preview:not(.is-video-active) .featured-video-play-icon {
  opacity: 1;
}

/* Scale effect on hover for media container */
.featured-game-media,
.featured-game-image {
  transition: transform 0.45s ease;

}

.featured-card:hover .featured-game-media,
.featured-card:focus-within .featured-game-media,
.featured-card:hover .featured-game-image,
.featured-card:focus-within .featured-game-image {
  transform: scale(1.02);
}

/* Hide video preview on touch devices */
@media (hover: none) {
  .featured-video-preview,
  .featured-video-gradient,
  .featured-video-play-icon {
    display: none;
  }
}

.games-grid {
  display: grid;
  gap: 32px;
  margin-top: 44px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.games-grid.single-item {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  background: var(--surface);
  cursor: pointer;
  outline: none;
}

.game-card:focus-visible {
  border-color: rgba(59, 130, 246, 0.4);
}

.game-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  aspect-ratio: auto;
  padding: 0;
}

.games-card .game-media > img,
.game-media > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.game-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-card:hover .game-media > img,
.game-card:focus-within .game-media > img {
  transform: scale(1.05);
}

.game-card-logo {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: transparent;
  box-shadow: none;
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 4px 0;
}

.game-title,
.team-name {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.12rem;
  font-weight: 800;
}

.game-text {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.card-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-prompt::after {
  content: ">";
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  gap: 26px;
  margin-top: 44px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-grid.single-item {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}

.team-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  background: var(--surface);
}

.team-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 280px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 38%, #ffffff 100%);
  flex-shrink: 0;
}

/* Soft blend into card body — avoids a hard cut line under portraits */
.team-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 38%,
    rgba(255, 255, 255, 0.92) 72%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 1;
}

.team-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.team-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.team-role {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.team-summary {
  font-size: 0.92rem;
}

.contact-section {
  padding-top: 0;
  background: var(--surface-soft);
  overflow-x: clip;
  overflow-y: visible;
}

.contact-box,
.contact-shell {
  display: grid;
  align-items: start;
  gap: 28px 36px;
  padding: 36px 40px 40px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  overflow-x: clip;
  overflow-y: visible;
}

.contact-container {
  grid-template-columns: minmax(0, 0.42fr) minmax(140px, 200px) minmax(0, 1.65fr);
  gap: 28px 32px;
  align-items: start;
  overflow-x: clip;
  overflow-y: visible;
}

.contact-left {
  width: 100%;
}

.contact-left .section-heading {
  gap: 10px;
}

.contact-character {
  width: 100%;
  max-width: 200px;
  justify-self: center;
  align-self: end;
  overflow: visible;
}

.contact-character img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: scale(1.38);
  transform-origin: center bottom;
  filter: drop-shadow(0 22px 40px rgba(15, 23, 42, 0.18));
}

.contact-character.is-empty {
  display: none;
}

.contact-body {
  width: 100%;
  min-width: 0;
}

.contact-form-wrap {
  display: block;
  width: 100%;
  max-width: 760px;
}

.contact-container .contact-form-wrap {
  max-width: none;
}

.form-card,
.contact-form {
  padding: 24px 28px 28px;
  border-radius: 20px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
}

.contact-form-title {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.34rem;
  font-weight: 800;
}

.contact-form-text {
  margin-top: 10px;
  color: var(--ink-700);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form .form-grid .form-field:last-child {
    grid-column: 1 / -1;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #ffffff;
  color: var(--navy-900);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: rgba(59, 130, 246, 0.9);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
  color: var(--ink-500);
}

textarea.form-input {
  min-height: 120px;
  padding: 10px 14px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.contact-form-note,
.contact-form-status {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.9rem;
}

.contact-form-status {
  margin-top: 16px;
  color: var(--navy-900);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0f172a;
  color: rgba(255, 255, 255, 0.76);
}

.footer a:hover,
.site-footer a:hover,
.footer a:focus-visible,
.site-footer a:focus-visible {
  color: var(--primary);
}

.footer-shell {
  padding: 40px 0 26px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.footer-description {
  margin: 0;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
  line-height: 1.8;
}

.footer-heading {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #93c5fd;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-contact-link {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: var(--primary);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.footer-social-btn:hover,
.footer-social-btn:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.footer-social-btn svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Large (1440+) → Desktop (1025-1439) → Tablet (768-1024) → Mobile (320-767)
   ══════════════════════════════════════════════════════════════ */

/* ── Large screens (1440px+) ── */
@media (min-width: 1440px) {
  :root {
    --container: min(1360px, calc(100% - 80px));
  }

  .hero-title {
    font-size: clamp(4.5rem, 6vw, 6rem);
  }

  .services-inner {
    padding: 56px 64px 52px;
  }
}

/* ── Below 1220px ── */
@media (max-width: 1220px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Below 1080px — stack major two-column layouts ── */
@media (max-width: 1080px) {
  .hero-layout,
  .mission-layout,
  .featured-game-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
  }

  .hero-layout {
    min-height: auto;
    gap: 32px;
  }

  .hero-copy {
    max-width: 640px;
    padding-top: 0;
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
    min-height: auto;
  }

  .hero::after {
    right: 50%;
    transform: translate(50%, -50%);
  }

  .hero-character-shell {
    width: min(100%, 640px);
    height: min(74vh, 760px);
    margin: 0 auto;
  }

  .portrait-card,
  .mission-visual-card {
    max-width: 620px;
    margin: 0 auto;
  }

  .contact-copy {
    max-width: 640px;
  }

  .featured-game-layout {
    gap: 28px;
  }

  .featured-game-media,
  .featured-game-image {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ── Below 1040px — services inner collapses ── */
@media (max-width: 1040px) {
  .services-inner {
    grid-template-columns: 1fr;
    padding: 40px 36px 36px;
    gap: 32px;
  }

  .services-character {
    max-width: 300px;
    justify-self: center;
    align-self: center;
  }

  .services-content .section-heading {
    align-items: center;
    text-align: center;
  }

  .services-content .section-description {
    margin-left: auto;
    margin-right: auto;
  }

  .services-slider-wrapper {
    margin-top: 20px;
  }
}

/* ── Below 1024px — tablet threshold ── */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Below 920px — hamburger menu + grid adjustments ── */
@media (max-width: 920px) {
  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 28px;
    right: 28px;
    margin-left: 0;
    padding: 14px;
    border: 1px solid rgba(17, 32, 58, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 54px rgba(17, 32, 58, 0.14);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.is-active {
    background: var(--accent-soft);
  }

  .header-cta {
    display: none;
  }

  .services-grid,
  .games-grid,
  .info-grid,
  .mission-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Below 900px — services + contact collapse ── */
@media (max-width: 900px) {
  .services-inner {
    min-height: auto;
    padding: 32px 24px 28px;
  }

  .services-character {
    width: 200px;
    margin-bottom: 0;
  }

  .services-character img {
    width: 100%;
    transform: none;
  }

  .services-content .section-heading {
    padding-left: 0;
    margin-bottom: 0;
  }

  .services-content .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .services-slider-wrapper {
    padding-top: 8px;
    padding-left: 0;
  }

  .services-slider .service-panel {
    flex-basis: min(320px, calc(100vw - 72px));
    min-width: min(320px, calc(100vw - 72px));
    min-height: auto;
    padding: 24px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-character {
    order: 0;
    width: min(100%, 180px);
    max-width: 180px;
    margin: 0 auto;
    align-self: center;
  }

  .contact-character img {
    width: 100%;
    height: auto;
    transform: none;
  }

  .contact-body {
    display: flex;
    justify-content: center;
  }

  .contact-form-wrap {
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .about-copy-column .section-heading {
    max-width: 560px;
    gap: 18px;
  }

  .about-copy-column .section-title {
    max-width: 540px;
    line-height: 1.02;
    text-wrap: balance;
  }

  .about-copy-column .section-description {
    max-width: 560px;
  }

  .about-copy-column .info-grid {
    margin-top: 32px;
  }
}

/* ── Below 767px — mobile ── */
@media (max-width: 767px) {
  :root {
    --container: calc(100% - 32px);
    --section-pad: 64px;
    --header-height: 56px;
  }

  .header-bar {
    min-height: var(--header-height);
  }

  .logo-img {
    height: 30px;
  }

  /* Hero mobile */
  .hero-section,
  .hero {
    padding: 28px 0 56px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-description {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .hero-character-shell {
    height: min(60vh, 540px);
  }

  /* Section titles mobile */
  .section-title {
    font-size: clamp(1.375rem, 5.5vw, 2rem);
  }

  /* About mobile — stack to single column */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-copy-column {
    max-width: none;
  }

  .about-copy-column .section-title,
  .about-copy-column .section-description {
    max-width: 100%;
  }

  .about-copy-column .info-grid {
    margin-top: 24px;
    gap: 16px;
  }

  .portrait-card {
    min-height: 420px;
    padding: 20px 20px 0;
    max-width: 480px;
    margin: 0 auto;
  }

  .portrait-image {
    height: 400px;
  }

  /* All grids → single column */
  .services-grid,
  .games-grid,
  .team-grid,
  .info-grid,
  .mission-highlights {
    grid-template-columns: 1fr;
  }

  /* Services mobile */
  .services-slider .service-panel {
    flex-basis: calc(100vw - 56px);
    min-width: calc(100vw - 56px);
    padding: 22px;
  }

  .services-slider .service-icon {
    width: 52px;
    height: 52px;
  }

  .services-slider-wrapper.is-static-mobile {
    overflow: visible;
  }

  .services-slider.is-static-mobile {
    display: grid;
    width: 100%;
    gap: 16px;
    padding: 0;
    transform: none !important;
    transition: none !important;
    cursor: default;
  }

  .services-slider.is-static-mobile .service-panel,
  .services-slider.is-static-mobile .service-panel:not(.active),
  .services-slider.is-static-mobile .service-panel.active {
    width: 100%;
    min-width: 0;
    flex: none;
    opacity: 1;
    transform: none;
  }

  /* Featured game mobile */
  .featured-game-card {
    padding: 18px;
  }

  .featured-game-banner {
    min-height: auto;
  }

  .featured-game-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  }

  .featured-game-text {
    font-size: 0.9rem;
  }

  /* Team mobile */
  .team-media {
    min-height: 220px;
    aspect-ratio: 3 / 4;
  }

  /* Mission mobile */
  .mission-visual-card {
    min-height: 440px;
    padding: 22px 18px 0;
  }

  .mission-image {
    height: 420px;
  }

  .mission-highlight {
    padding: 18px;
  }

  /* Contact mobile */
  .contact-box,
  .contact-shell {
    padding: 28px 20px;
    border-radius: 16px 16px 0 0;
  }

  .contact-shell,
  .contact-container {
    gap: 18px;
  }

  .contact-copy,
  .contact-left,
  .contact-character,
  .contact-body {
    order: 0;
  }

  .contact-character {
    width: min(100%, 168px);
    max-width: 168px;
  }

  .contact-form,
  .form-card {
    padding: 20px;
    border-radius: 16px;
  }

  .form-actions {
    flex-direction: column;
    width: 100%;
  }

  .form-actions .button {
    width: 100%;
    min-height: 48px;
  }

  /* Footer mobile */
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    justify-content: start;
  }

  .footer-shell {
    padding: 32px 0 22px;
  }

  /* Navigation mobile */
  .site-nav {
    left: 16px;
    right: 16px;
  }

  /* Buttons — full-width + touch-friendly */
  .button:not(.button-link):not(.btn-link) {
    width: 100%;
    min-height: 48px;
  }
}

/* ── Below 480px — small mobile ── */
@media (max-width: 480px) {
  :root {
    --container: calc(100% - 24px);
    --section-pad: 48px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 14vw, 3.2rem);
  }

  .hero-character-shell {
    height: min(50vh, 420px);
    padding: 24px 12px 0;
  }

  .hero-section,
  .hero {
    padding: 20px 0 40px;
  }

  .section-kicker {
    font-size: 0.75rem;
  }

  .portrait-card {
    min-height: 340px;
    padding: 14px 14px 0;
  }

  .portrait-image {
    height: 320px;
  }

  .services-inner {
    padding: 22px 14px 18px;
    border-radius: 18px;
  }

  .services-character {
    width: 160px;
  }

  .services-slider .service-panel {
    flex-basis: calc(100vw - 40px);
    min-width: calc(100vw - 40px);
    padding: 18px;
  }

  .services-slider .service-title {
    font-size: 1.15rem;
  }

  .services-slider .service-text {
    font-size: 0.85rem;
  }

  .featured-game-card {
    padding: 14px;
  }

  .featured-game-banner {
    min-height: auto;
  }

  .featured-game-title {
    font-size: clamp(1.5rem, 8vw, 2rem) !important;
  }

  .game-card {
    padding: 12px;
  }

  .team-card {
    padding: 12px;
  }

  .mission-visual-card {
    min-height: 360px;
    padding: 18px 14px 0;
  }

  .mission-image {
    height: 340px;
  }

  .contact-box,
  .contact-shell {
    padding: 22px 14px;
  }

  .contact-character {
    width: min(100%, 148px);
    max-width: 148px;
  }

  .contact-form,
  .form-card {
    padding: 16px;
  }

  .footer-bottom {
    font-size: 0.78rem;
  }
}

/* ── Overflow prevention ── */
html {
  width: 100%;
  max-width: 100%;
  scrollbar-gutter: stable;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY — Reduced Motion
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-character-shell {
    animation: none;
  }
}

/* Legal pages */
.legal-page {
  margin: 0;
  min-width: 320px;
  background: #f3f7f5;
  color: #172033;
  font-family: "Manrope", sans-serif;
  line-height: 1.75;
}

.legal-page a {
  color: #1f6f8b;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.legal-page a:hover,
.legal-page a:focus-visible {
  color: #245bbf;
}

.legal-container {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.legal-hero,
.legal-card {
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
}

.legal-hero {
  padding: 34px 36px;
}

.legal-hero h1 {
  margin: 0;
  color: #10233a;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.legal-subtitle,
.legal-date {
  margin: 12px 0 0;
  color: #5c6878;
  font-size: 0.96rem;
  letter-spacing: 0;
}

.legal-date {
  color: #39475a;
  font-weight: 800;
}

.legal-card {
  margin-top: 20px;
  padding: 30px 34px;
  overflow-x: auto;
}

.legal-card h2,
.legal-card h3,
.legal-card p {
  letter-spacing: 0;
}

.legal-card h2 {
  margin: 0 0 18px;
  color: #10233a;
  font-size: 1.55rem;
  line-height: 1.25;
}

.legal-card h3 {
  margin: 24px 0 10px;
  color: #1f2f46;
  font-size: 1.06rem;
  line-height: 1.35;
}

.legal-card p {
  margin: 0 0 14px;
  color: #364456;
  font-size: 1rem;
}

.legal-card p:last-child,
.legal-card ul:last-child,
.legal-card ol:last-child,
.legal-card table:last-child {
  margin-bottom: 0;
}

.legal-card ul,
.legal-card ol {
  margin: 12px 0 18px;
  padding-left: 1.35rem;
  color: #364456;
}

.legal-card li {
  margin: 8px 0;
  padding-left: 2px;
}

.legal-card strong {
  color: #162033;
}

.legal-card .ico {
  display: inline-flex;
  margin-right: 8px;
  vertical-align: 0.02em;
}

.legal-card .callout,
.legal-card .option-box,
.legal-card .email-cta,
.legal-card .info-row {
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #f8fbfa;
}

.legal-card .callout {
  margin: 18px 0;
  padding: 16px 18px;
  color: #344357;
}

.legal-card .callout.blue,
.legal-card .option-box.blue {
  border-left: 4px solid #2563eb;
}

.legal-card .callout.green,
.legal-card .option-box.green {
  border-left: 4px solid #2f855a;
}

.legal-card .callout.amber,
.legal-card .option-box.amber,
.legal-card .option-box.orange {
  border-left: 4px solid #d97706;
}

.legal-card .data-table {
  width: 100%;
  min-width: 640px;
  margin: 16px 0 22px;
  border-collapse: collapse;
  color: #364456;
  font-size: 0.94rem;
}

.legal-card .data-table th,
.legal-card .data-table td {
  padding: 12px 14px;
  border: 1px solid #dfe7e2;
  text-align: left;
  vertical-align: top;
}

.legal-card .data-table th {
  background: #eef4f1;
  color: #10233a;
  font-weight: 800;
}

.legal-card .email-cta,
.legal-card .info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 16px;
}

.legal-card .e-icon,
.legal-card .ir-icon {
  flex: 0 0 auto;
  line-height: 1.2;
}

.legal-card .e-label,
.legal-card .ir-label {
  color: #10233a;
  font-size: 0.86rem;
  font-weight: 800;
}

.legal-card .e-address,
.legal-card .ir-value {
  overflow-wrap: anywhere;
}

.legal-card .ir-value {
  color: #364456;
}

.legal-card .steps {
  padding-left: 1.35rem;
}

.legal-card .steps li {
  margin: 14px 0;
}

.legal-card .hint {
  display: block;
  margin-top: 4px;
  color: #637083;
  font-size: 0.92rem;
}

.legal-card .option-tab {
  display: inline-flex;
  margin: 20px 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef4f1;
  color: #10233a;
  font-weight: 800;
}

.legal-card .option-box {
  margin-bottom: 18px;
  padding: 18px;
}

.legal-card .badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef4f1;
  color: #10233a;
  font-size: 0.84rem;
  font-weight: 800;
}

.legal-card .badge.deleted {
  background: #e8f5ee;
  color: #216e45;
}

.legal-card .badge.retained {
  background: #fff5dd;
  color: #8a5b00;
}

.legal-card .badge.external {
  background: #eaf1ff;
  color: #245bbf;
}

@media (max-width: 640px) {
  .legal-container {
    width: calc(100% - 24px);
    padding: 32px 0 48px;
  }

  .legal-hero {
    padding: 24px 20px;
  }

  .legal-hero h1 {
    font-size: 2.35rem;
  }

  .legal-subtitle,
  .legal-date {
    font-size: 0.9rem;
  }

  .legal-card {
    margin-top: 14px;
    padding: 22px 18px;
  }

  .legal-card h2 {
    font-size: 1.28rem;
  }

  .legal-card h3 {
    font-size: 1rem;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.94rem;
  }

  .legal-card .data-table {
    min-width: 560px;
    font-size: 0.88rem;
  }

  .legal-card .email-cta,
  .legal-card .info-row {
    padding: 14px;
  }
}

/* Footer grid refinement */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact-list {
  gap: 10px;
}

.footer-contact-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

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

/* Game detail page */
.game-page {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.game-page-main {
  min-height: 100vh;
  padding: 40px 0 72px;
}

.game-page-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.game-page-section + .game-page-section {
  margin-top: 32px;
}

.game-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.game-page .game-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
}

.game-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.game-header .game-status {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-header h1 {
  margin: 6px 0 0;
  color: var(--navy-900);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
}

.game-header p {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.78;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  color: #ffffff;
  background: #1d4ed8;
}

.btn.secondary {
  border-color: rgba(37, 99, 235, 0.16);
  background: #eff6ff;
  color: var(--primary-dark);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  color: var(--primary-dark);
  background: #dbeafe;
}

.btn.outline {
  border-color: rgba(15, 23, 42, 0.14);
  background: transparent;
  color: var(--navy-900);
}

.btn.outline:hover,
.btn.outline:focus-visible {
  color: var(--navy-900);
  background: rgba(15, 23, 42, 0.04);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.game-banner {
  margin-top: 0;
}

.game-page .game-banner img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.game-gallery img {
  width: 100%;
  border-radius: 12px;
}

.game-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.game-content-card {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.game-content-card.is-wide {
  grid-column: 1 / -1;
}

.game-content h2,
.game-content h3 {
  margin: 0 0 12px;
  color: var(--navy-900);
  letter-spacing: 0;
}

.game-content p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.8;
}

.game-section-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-700);
}

.game-page-main.is-not-found .game-header {
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .game-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .game-page-main {
    padding: 28px 0 48px;
  }

  .game-page-section {
    width: calc(100% - 32px);
  }

  .game-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-header h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .game-actions {
    width: 100%;
  }

  .game-actions .btn {
    flex: 1 1 calc(50% - 6px);
  }

  .game-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-content-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .game-page-section {
    width: calc(100% - 24px);
  }

  .game-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .game-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .game-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
}

/* ============================================================
   AJOY GAMES — UI/UX PATCH
   Paste this block at the END of css/style.css
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   TASK 1 — Featured game card: clickable, hover lift
   ──────────────────────────────────────────────────────────── */

.featured-game-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .featured-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
  }
}

/* Remove any lingering View Details styles */
.featured-view-details {
  display: none !important;
}


/* ────────────────────────────────────────────────────────────
   TASK 2 — Team cards: pointer + modal overlay
   ──────────────────────────────────────────────────────────── */

.team-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  }
}

.team-card:focus-visible {
  outline: 2px solid var(--color-accent, #2563eb);
  outline-offset: 4px;
}

/* Modal overlay */
.team-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.team-modal-overlay.is-open {
  display: flex;
}

.team-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  display: flex;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
  animation: team-modal-in 0.25s ease both;
  max-height: calc(100vh - 32px);
}

@keyframes team-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Image panel */
.team-modal-image-panel {
  flex: 0 0 42%;
  background: #f1f5f9;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.team-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Content panel */
.team-modal-content-panel {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow-y: auto;
  position: relative;
}

.team-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f172a;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
  padding: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.team-modal-close:focus-visible {
  outline: 2px solid var(--color-accent, #2563eb);
  outline-offset: 2px;
}

.team-modal-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent, #2563eb);
  margin: 0;
  margin-top: 8px;
}

.team-modal-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.team-modal-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.team-modal-links {
  margin-top: 8px;
}

.team-modal-links-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 10px;
}

.team-modal-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-modal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--color-accent, #2563eb);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.team-modal-link-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Mobile stacked layout */
@media (max-width: 680px) {
  .team-modal {
    flex-direction: column;
    max-height: 90vh;
    border-radius: 20px;
  }

  .team-modal-image-panel {
    flex: 0 0 auto;
    height: 35vh;
    min-height: 240px;
    max-height: 320px;
    padding-top: 48px;
  }

  .team-modal-image-panel::after {
    display: none !important;
  }

  .team-modal-img {
    object-fit: contain;
    object-position: center bottom;
  }

  .team-modal-content-panel {
    padding: 24px 20px;
    gap: 16px;
    justify-content: flex-start;
  }

  .team-modal-name {
    font-size: clamp(1.6rem, 7vw, 1.8rem);
    line-height: 1.15;
  }

  .team-modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .team-modal-links-row {
    flex-direction: column;
    gap: 10px;
  }

  .team-modal-link-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .team-modal-close {
    top: 12px;
    right: 12px;
  }
}


/* ────────────────────────────────────────────────────────────
   TASK 3 — Game grid cards: banner 16:9, compact size
   ──────────────────────────────────────────────────────────── */

/* Remove old square / profile styles */
.game-profile-card,
.game-profile-logo-wrap,
.game-profile-logo {
  all: unset;
}

/* New grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Banner wrapper — 16:9 */
.games-card .game-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 10px 10px 0 0;
}

.games-card .game-media img.game-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Card shell */
.games-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

@media (hover: hover) {
  .games-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  }

  .games-card:hover .game-media img.game-banner {
    transform: scale(1.04);
  }
}

/* Body */
.games-card .game-body {
  padding: 12px 14px 14px;
}

/* Clamp description to 2 lines */
.game-text-clamp {
  display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-clamp: 2;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748b;
  margin: 4px 0 0;
}

/* Single-item centre alignment */
.games-grid.single-item {
  max-width: 340px;
  margin-inline: auto;
}

/* Responsive collapse */
@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

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

/* ============================================================
   TEAM MODAL — PRODUCTION UI REVISION
   ============================================================ */

.team-modal-overlay .team-modal {
  width: min(860px, calc(100vw - 40px));
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.team-modal-overlay .team-modal-image-panel {
  flex: 0 0 42%;
  height: auto;
  min-height: 100%;
  background: var(--surface-soft);
  position: relative;
  border-right: 1px solid var(--border-soft);
  border-bottom: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-modal-overlay .team-modal-image-panel::after {
  display: none !important;
}

.team-modal-overlay .team-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-modal-overlay .team-modal-content-panel {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow-y: auto;
}

.team-modal-overlay .team-modal-role {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}

.team-modal-overlay .team-modal-name {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin: 0;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.team-modal-overlay .team-modal-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-700);
  margin: 0;
  max-width: 48ch;
}

.team-modal-overlay .team-modal-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-modal-overlay .team-modal-links-label {
  display: none;
}

.team-modal-overlay .team-modal-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.team-modal-overlay .team-modal-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: none;
}

.team-modal-overlay .team-modal-link-btn:not(:first-child) {
  background: transparent;
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.3);
}

.team-modal-overlay .team-modal-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.team-modal-overlay .team-modal-link-btn:not(:first-child):hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--primary);
  box-shadow: none;
}

.team-modal-overlay .team-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  padding: 0;
  opacity: 1;
}

.team-modal-overlay .team-modal-close:hover {
  background: var(--surface-soft);
  color: var(--accent);
  transform: scale(1.05);
}

/* Mobile overrides */
@media (max-width: 767px) {
  .team-modal-overlay .team-modal {
    flex-direction: column;
    width: calc(100vw - 32px);
    max-height: 90vh;
    border-radius: 16px;
  }

  .team-modal-overlay .team-modal-image-panel {
    flex: 0 0 auto;
    height: 32vh;
    min-height: 200px;
    max-height: 280px;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding: 20px;
  }

  .team-modal-overlay .team-modal-img {
    object-fit: contain;
  }

  .team-modal-overlay .team-modal-content-panel {
    padding: 20px;
    gap: 14px;
    justify-content: flex-start;
  }

  .team-modal-overlay .team-modal-role {
    font-size: 0.75rem;
    margin-top: 0;
  }

  .team-modal-overlay .team-modal-name {
    font-size: clamp(1.6rem, 7vw, 1.8rem);
    line-height: 1.15;
  }

  .team-modal-overlay .team-modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .team-modal-overlay .team-modal-links-row {
    flex-direction: column;
    gap: 10px;
  }

  .team-modal-overlay .team-modal-link-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .team-modal-overlay .team-modal-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

/* ============================================================
   AJOY GAMES — TARGETED UI ADJUSTMENTS
   ============================================================ */

/* Task 1: Team popup reference match */
.team-modal-overlay {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.team-modal {
  width: min(780px, calc(100vw - 36px));
  max-height: calc(100vh - 40px);
  border-radius: 14px;
  box-shadow: 0 28px 72px rgba(2, 8, 23, 0.38);
  overflow: hidden;
}

.team-modal-image-panel {
  flex: 0 0 40%;
  min-height: 390px;
  background: #f2f4f8;
  align-items: stretch;
  border-right: 1px solid #e5e7eb;
  position: relative;
}

.team-modal-image-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.66) 52%,
    #ffffff 100%
  );
  pointer-events: none;
}

.team-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-modal-content-panel {
  flex: 1 1 60%;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.team-modal-role {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #334155;
}

.team-modal-name {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: #0f172a;
}

.team-modal-desc {
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.65;
  color: #334155;
}

.team-modal-links {
  margin-top: 10px;
}

.team-modal-links-label {
  margin: 0 0 8px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: #6b7280;
}

.team-modal-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-modal-link-btn {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.team-modal-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  opacity: 1;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-modal-close:hover,
.team-modal-close:focus-visible {
  background: #f3f4f6;
  border-color: #9ca3af;
  opacity: 1;
}

@media (max-width: 680px) {
  .team-modal {
    width: calc(100vw - 32px);
    max-height: 90vh;
    border-radius: 20px;
    flex-direction: column;
  }

  .team-modal-image-panel {
    flex-basis: auto;
    height: 35vh;
    min-height: 240px;
    max-height: 320px;
    padding-top: 48px;
    border-right: 0;
    border-bottom: 1px solid #e6e9ee;
  }

  .team-modal-image-panel::after {
    display: none !important;
  }

  .team-modal-img {
    object-fit: contain;
    object-position: center bottom;
  }

  .team-modal-content-panel {
    padding: 24px 20px;
    gap: 16px;
    justify-content: flex-start;
  }

  .team-modal-name {
    font-size: clamp(1.6rem, 7vw, 1.8rem);
    line-height: 1.15;
  }

  .team-modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .team-modal-links-row {
    flex-direction: column;
    gap: 10px;
  }

  .team-modal-link-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .team-modal-close {
    top: 12px;
    right: 12px;
  }
}

/* Task 2: Featured card interaction affordance */
.featured-game-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .featured-game-card:hover,
  .featured-game-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 26px 64px rgba(15, 23, 42, 0.16);
  }
}

/* Task 3: Work section card compact grid + logo media */
.games-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.games-card {
  padding: 14px;
}

.games-card .game-media {
  aspect-ratio: 1 / 1;
  padding: 16px;
  border-radius: 14px;
}

.games-card .game-banner,
.games-card .game-media > img.game-banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.games-card .game-body {
  gap: 8px;
  padding: 12px 2px 0;
}

.game-text-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* ============================================================
   FINAL RESPONSIVE POLISH (Desktop + Mobile)
   ============================================================ */

/* Reduce aggressive global card scaling that causes layout shifts */
@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .card:focus-within,
  .portrait-card:hover,
  .portrait-card:focus-within,
  .info-card:hover,
  .info-card:focus-within,
  .service-card:hover,
  .service-card:focus-within,
  .game-card:hover,
  .game-card:focus-within,
  .team-card:hover,
  .team-card:focus-within,
  .contact-form:hover,
  .contact-form:focus-within,
  .mission-highlight:hover,
  .mission-highlight:focus-within,
  .mission-visual-card:hover,
  .mission-visual-card:focus-within {
    transform: translateY(-4px);
  }
}

/* Keep touch interactions stable */
@media (hover: none), (pointer: coarse) {
  .card:hover,
  .card:focus-within,
  .featured-game-card:hover,
  .featured-game-card:focus-within,
  .games-card:hover,
  .games-card:focus-within,
  .team-card:hover {
    transform: none !important;
  }
}

/* Featured section: stronger hierarchy and cleaner spacing */
.featured-game-heading .section-title,
#featured-game-heading .section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 0.95;
}

.featured-game-card {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 48%, #edf3ff 100%);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.12), 0 28px 64px rgba(15, 23, 42, 0.14);
}

.featured-game-layout {
  gap: clamp(18px, 3.2vw, 38px);
  align-items: stretch;
}

.featured-game-status {
  margin: 0;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-game-card-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #13368f;
}

.featured-game-text {
  max-width: 54ch;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.72;
}

/* Work cards: compact, consistent rhythm */
.games-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 30px;
  align-items: stretch;
}

.games-card {
  max-width: 250px;
  width: 100%;
  margin-inline: auto;
  padding: 12px;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.games-card .game-media {
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.games-card .game-banner,
.games-card .game-media > img.game-banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.games-card .game-body {
  gap: 7px;
  padding: 11px 2px 0;
}

.games-card .game-status-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.games-card .game-title {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.22;
}

.game-text-clamp {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* Team modal: balanced and readable */
.team-modal {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 28px);
  border-radius: 20px;
}

.team-modal-content-panel {
  padding: 40px 48px;
  justify-content: center;
}

.team-modal-name {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.team-modal-desc {
  max-width: 48ch;
}

/* Mobile fit pass */
@media (max-width: 900px) {
  .featured-game-layout {
    grid-template-columns: 1fr;
  }

  .featured-game-body {
    order: 2;
  }

  .featured-game-media {
    order: 1;
  }
}

@media (max-width: 767px) {
  .featured-game-shell {
    margin-top: 20px;
  }

  .featured-game-card {
    padding: 14px;
    border-radius: 16px;
  }

  .featured-game-text {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
  }

  .games-card {
    max-width: none;
    padding: 10px;
  }

  .games-card .game-media {
    padding: 8px;
    border-radius: 10px;
  }

  .games-card .game-title {
    font-size: 0.94rem;
  }

  .game-text-clamp {
    font-size: 0.76rem;
  }

  .team-modal {
    width: calc(100vw - 32px);
    max-height: 90vh;
    border-radius: 20px;
    flex-direction: column;
  }

  .team-modal-image-panel {
    flex: 0 0 auto;
    height: 35vh;
    min-height: 240px;
    max-height: 320px;
    padding-top: 48px;
    border-right: 0;
    border-bottom: 1px solid #e6e9ee;
  }

  .team-modal-image-panel::after {
    display: none !important;
  }

  .team-modal-img {
    object-fit: contain;
    object-position: center bottom;
  }

  .team-modal-content-panel {
    padding: 24px 20px;
    gap: 16px;
    justify-content: flex-start;
  }

  .team-modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .team-modal-name {
    font-size: clamp(1.6rem, 7vw, 1.8rem);
    line-height: 1.15;
  }

  .team-modal-links-row {
    flex-direction: column;
    gap: 10px;
  }

  .team-modal-link-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .team-modal-close {
    top: 12px;
    right: 12px;
  }
}

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

/* Featured: stronger emphasis, less name redundancy */
.featured-game-card {
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow:
    0 10px 32px rgba(37, 99, 235, 0.1),
    0 28px 64px rgba(15, 23, 42, 0.12);
}

.featured-game-body {
  gap: 12px;
}

.featured-game-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-game-text {
  max-width: 52ch;
}

.featured-game-hint {
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-game-hint::after {
  content: ">";
  font-size: 0.82rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .featured-game-hint {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 5px 9px;
  }
}

/* Work cards: large logo + name + view page */
.games-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.games-card {
  max-width: 300px;
  padding: 14px;
}

.games-card .game-media {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: transparent;
}

.games-card .game-banner,
.games-card .game-media > img.game-banner {
  border-radius: 12px;
}

.games-card .game-body {
  gap: 8px;
  padding: 12px 0 0;
}

.games-card .game-title {
  font-size: 1.1rem;
  line-height: 1.2;
}

.games-card .game-text {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.game-card-cta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-card-cta::after {
  content: ">";
  font-size: 0.9rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .games-card {
    max-width: none;
    padding: 10px;
  }

  .games-card .game-title {
    font-size: 0.98rem;
  }

  .games-card .game-text {
    font-size: 0.8rem;
  }
}

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

/* ============================================================
   IMAGE PROGRESSIVE LOADING (Optimization)
   ============================================================ */
.img-loading {
  opacity: 0;
}
img.is-loaded {
  opacity: 1;
  transition: opacity 0.35s ease-out;
}