:root {
  color-scheme: dark;
  --ink: #070e17;
  --white: #f4f7fc;
  --muted: #a8b8cb;
  --blue: #61cbff;
  --line: #243348;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--ink);
  color: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; left: 1rem; top: 1rem; transform: translateY(-180%); padding: .75rem; background: white; color: var(--ink); }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); background: #070e17; position: relative; z-index: 2; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; }
.header-inner { min-height: 77px; }
.brand { display: block; flex: 0 0 auto; width: 76px; }
.brand img { width: 100%; mix-blend-mode: screen; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3.5vw, 49px); font-size: .9rem; font-weight: 650; }
.site-nav a:hover, .text-link:hover, .footer a:hover { color: var(--blue); }
.nav-contact { border: 1px solid #41546a; padding: 10px 14px; }
.nav-contact span { margin-left: 5px; color: var(--blue); }

.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 4px solid #168ad0; background: radial-gradient(ellipse at 78% 49%, #122d46 0%, #0a1726 36%, var(--ink) 73%); }
.hero-plane { position: absolute; inset: 0 0 0 38%; z-index: -1; clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%); background: repeating-linear-gradient(133deg, transparent 0 33px, #6fcaff14 34px 35px), linear-gradient(113deg, #123051 24%, #143655 56%, #0b2138 100%); }
.hero-inner { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; min-height: 610px; padding-block: 65px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: Consolas, "Courier New", monospace; font-size: .76rem; font-weight: 700; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; color: var(--blue); }
.eyebrow > span { display: inline-block; width: 17px; height: 7px; background: currentColor; transform: skewX(-28deg); }
h1, h2, h3 { font-weight: 780; letter-spacing: -.065em; }
h1 { max-width: 760px; margin-top: 22px; font-size: clamp(3.3rem, 6.65vw, 6.85rem); line-height: .98; }
h1 em { font-style: normal; color: var(--blue); }
.intro { max-width: 410px; margin-top: 28px; color: #c0ccdc; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 31px; }
.button, .text-link { display: inline-flex; align-items: center; gap: 14px; font-size: .9rem; font-weight: 750; }
.button { min-height: 48px; padding: 12px 17px; justify-content: space-between; background: var(--blue); color: #061422; }
.button:hover { background: #a6e4ff; }
.text-link { min-height: 44px; }

.emblem-stage { display: grid; place-items: center; position: relative; aspect-ratio: 1; width: 100%; max-width: 515px; justify-self: center; }
.emblem-frame { position: absolute; inset: 3%; border-radius: 50%; border: 1px solid #7ed7ff31; background: radial-gradient(circle, #0b1724 0 54%, #07111a 64%, #09162522 71%); box-shadow: 0 0 75px #54c0ff22, inset 0 0 30px #1c91e221; }
.emblem-frame::before, .emblem-frame::after { content: ""; position: absolute; border: 1px solid #74cbff33; border-radius: 50%; inset: -6%; }
.emblem-frame::after { inset: -12%; border-style: dashed; border-color: #80d0ff24; }
.emblem { width: 95%; position: relative; mix-blend-mode: screen; }

.games { background: #eaf0f6; color: #111d2c; padding-block: 74px 80px; }
.games .eyebrow { color: #075d90; }
h2 { font-size: clamp(2.55rem, 5vw, 5rem); line-height: 1.02; margin-top: 12px; }
.game { display: grid; grid-template-columns: .83fr 1.17fr; min-height: 365px; margin-top: 31px; overflow: hidden; background: #0a121b; color: var(--white); }
.game-copy { align-self: center; padding: clamp(25px, 4vw, 60px); position: relative; z-index: 1; }
.games .game-genre { color: #9be0ff; }
.game h3 { font-size: clamp(2.75rem, 5.1vw, 5.35rem); line-height: .9; margin-top: 14px; }
.game-copy > p:last-child { font-size: 1rem; line-height: 1.65; max-width: 340px; margin-top: 20px; color: #bdcddd; }
.game-art { min-height: 235px; display: grid; place-items: center; overflow: hidden; position: relative; background: radial-gradient(ellipse at 56% 49%, #27789c80, transparent 56%), linear-gradient(100deg, #0a121b, #142a3b 55%, #0a131d); }
.game-art::before, .game-art::after { content: ""; position: absolute; inset: 4% -13%; background: repeating-linear-gradient(90deg, transparent 0 68px, #b0e6ff18 70px, transparent 72px 94px); transform: perspective(380px) rotateX(62deg); transform-origin: center 96%; }
.game-art::after { transform-origin: center 4%; transform: perspective(380px) rotateX(-62deg); }
.portal { position: relative; width: 75%; height: 84%; isolation: isolate; }
.portal i { position: absolute; inset: 0; clip-path: polygon(17% 0, 83% 0, 100% 27%, 100% 100%, 0 100%, 0 27%); background: linear-gradient(140deg, #467d98, #182738 47%, #78c2e8 51%, #162537 66%); }
.portal i:nth-child(2) { inset: 4% 4% 0; background: linear-gradient(135deg, #0d1621, #18344a 72%, #07111a); }
.portal i:nth-child(3) { inset: 17% 20% 0; background: linear-gradient(128deg, #52a5cc, #152d3f 34%, #0b131e 58%, #4a7895); }
.portal i:nth-child(4) { inset: 21% 24% 0; background: radial-gradient(ellipse at 50% 100%, #19648d, #111f2c 46%, #060b11 70%); }

.studio { padding-block: 88px; }
.studio-inner { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 38px; }
.studio-inner > p { color: #b9c9da; font-size: 1.08rem; line-height: 1.75; max-width: 420px; }
.team { margin-top: clamp(42px, 6vw, 80px); padding-top: clamp(30px, 4vw, 50px); border-top: 1px solid var(--line); }
.team-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.team-heading h3 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.05; }
.team-heading p { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 8px; }
.team-controls:not([hidden]) { display: flex; flex: none; gap: 8px; }
.team-controls button { width: 44px; height: 44px; border: 1px solid #41546a; background: #101f31; color: var(--blue); font: 1.25rem "Segoe UI", sans-serif; cursor: pointer; }
.team-controls button:hover { border-color: var(--blue); }
.team-controls button:focus-visible, .team-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.team-controls button[aria-disabled="true"] { border-color: var(--line); color: #798ba3; cursor: default; }
.team-track { --card-gap: 18px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--card-gap)) / 3); gap: var(--card-gap); margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: #415b75 #101b29; }
.team-card { min-width: 0; scroll-snap-align: start; border: 1px solid var(--line); background: #101b29; }
.team-card > img { width: 100%; aspect-ratio: 1.42; object-fit: cover; object-position: center 38%; background: #182b42; }
.team-card-copy { padding: clamp(18px, 2vw, 25px); }
.team-card h4 { margin: 0; font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -.035em; }
.team-position { margin-top: 5px; color: var(--blue); font-size: .88rem; font-weight: 650; }
.team-bio { margin-top: 12px; color: #b9c9da; line-height: 1.6; font-size: .94rem; }
.contact { background: #101f31; padding-block: 52px; border-top: 1px solid #253d57; }
.contact-inner { display: flex; align-items: end; gap: 24px; justify-content: space-between; }
.footer { padding-block: 25px; color: #b0bfd0; font-size: .84rem; }
.footer-inner { gap: 16px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .hero-inner { min-height: 520px; }
  .team-track { grid-auto-columns: calc((100% - var(--card-gap)) / 2); }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand { width: 64px; }
  .site-nav { gap: 12px; font-size: .76rem; }
  .nav-contact { padding: 7px 8px; }
  .nav-contact span { display: none; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 52px 32px; gap: 18px; }
  .hero-plane { inset: 29% 0 0 0; }
  h1 { font-size: clamp(2.6rem, 9.4vw, 4.6rem); margin-top: 17px; }
  .intro { margin-top: 20px; max-width: 350px; }
  .hero-actions { gap: 8px 15px; margin-top: 19px; }
  .button, .text-link { font-size: .82rem; gap: 8px; }
  .button { padding-inline: 12px; min-height: 44px; }
  .emblem-stage { width: min(85%, 340px); }
  .games, .studio { padding-block: 52px; }
  .game { grid-template-columns: 1fr; }
  .studio-inner { grid-template-columns: 1fr; gap: 20px; }
  .team-track { grid-auto-columns: 100%; }
  .contact { padding-block: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
