:root {
  --ink: #f6f8ff;
  --muted: #9daac6;
  --night: #050713;
  --cyan: #42efff;
  --line: rgba(141, 177, 222, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('company.png') center / cover no-repeat;
  transform: scale(1.025);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 4, 15, .95) 0%, rgba(5, 7, 19, .74) 42%, rgba(5, 7, 19, .12) 78%),
    linear-gradient(0deg, rgba(5, 7, 19, .9) 0%, transparent 42%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, black, transparent 75%);
}
.site-header {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.brand { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.brand > span:last-child > span { color: var(--cyan); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(66, 239, 255, .72);
  color: var(--cyan);
  font: 800 11px/1 ui-monospace, monospace;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
}
.nav { display: flex; gap: 42px; color: #dbe5ff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { transition: color .2s; }
.nav a:hover, .nav a:focus-visible { color: var(--cyan); }
.hero-content { width: min(1400px, calc(100% - 64px)); margin: 0 auto; padding-top: clamp(120px, 18vh, 210px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow > span { width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 12px currentColor; }
h1, h2 { font-family: "Arial Narrow", Impact, sans-serif; text-transform: uppercase; }
h1 { max-width: 970px; margin: 0; font-size: clamp(58px, 7.3vw, 116px); line-height: .91; letter-spacing: -.045em; }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(188, 221, 255, .78); text-shadow: 0 0 32px rgba(94, 91, 255, .28); }
.hero-copy { max-width: 560px; margin: 32px 0 0; color: #c1cbe1; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #030816; background: var(--cyan); box-shadow: 0 0 34px rgba(66,239,255,.2); }
.button-ghost { border-color: rgba(255,255,255,.3); background: rgba(5,8,20,.35); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: var(--cyan); }
.scroll-cue { position: absolute; right: max(32px, calc((100vw - 1400px) / 2)); bottom: 34px; display: flex; align-items: center; gap: 16px; color: #8d9bb9; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; transform: rotate(90deg) translateX(-100%); transform-origin: right bottom; }
.scroll-cue i { width: 76px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.games-section { min-height: 72vh; padding: 110px max(32px, calc((100vw - 1400px) / 2)); background: radial-gradient(circle at 80% 20%, rgba(103,49,205,.18), transparent 28%), #070a15; border-top: 1px solid var(--line); }
.section-number { color: #62708d; font: 11px/1 ui-monospace, monospace; letter-spacing: .2em; }
.game-intro { margin-top: 74px; display: grid; grid-template-columns: 1.3fr .75fr; gap: 44px 80px; align-items: end; }
.game-intro h2 { margin: 0; font-size: clamp(82px, 15vw, 220px); line-height: .72; letter-spacing: -.055em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.game-intro > p { margin: 0; max-width: 470px; color: var(--muted); line-height: 1.8; }
.text-link { grid-column: 2; width: fit-content; padding-bottom: 8px; border-bottom: 1px solid var(--cyan); color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.text-link span { margin-left: 36px; }
.about-section { display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); min-height: 90vh; border-top: 1px solid var(--line); background: #050713; }
.about-visual { position: relative; min-height: 680px; overflow: hidden; border-right: 1px solid var(--line); }
.about-image { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,7,18,.6), transparent 65%), url('games/bricks/bricks1.png') center / cover no-repeat; filter: saturate(.78); transition: filter .4s, transform .6s; }
.about-visual:hover .about-image { filter: saturate(1); transform: scale(1.018); }
.about-visual > p { position: absolute; left: 42px; bottom: 30px; margin: 0; color: #7c8ba9; font: 10px/1 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.corner { position: absolute; width: 34px; height: 34px; border-color: var(--cyan); opacity: .8; }
.corner-one { top: 28px; left: 28px; border-top: 1px solid; border-left: 1px solid; }
.corner-two { right: 28px; bottom: 28px; border-right: 1px solid; border-bottom: 1px solid; }
.about-copy { padding: clamp(70px, 8vw, 130px); display: flex; flex-direction: column; justify-content: center; }
.about-copy .eyebrow { margin-top: 76px; }
.about-copy h2 { margin: 0; font-size: clamp(48px, 5.8vw, 92px); line-height: .98; letter-spacing: -.035em; }
.about-copy h2 em { color: var(--cyan); font-style: normal; }
.about-copy > p { max-width: 630px; margin: 36px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 68px; padding-top: 24px; border-top: 1px solid var(--line); }
.values div { display: flex; gap: 14px; align-items: flex-start; }
.values strong { color: var(--cyan); font: 10px/1.3 ui-monospace, monospace; }
.values span { color: #d4def3; font-size: 11px; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }
footer { min-height: 150px; padding: 42px max(32px, calc((100vw - 1400px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-top: 1px solid var(--line); background: #03050c; }
footer p { margin: 0; color: #65718a; font-size: 12px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
footer > a:last-child { justify-self: end; color: #9eabc4; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.project-page { min-height: 100vh; background: #050713; }
.project-hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.project-hero-image { position: absolute; inset: 0; z-index: -3; background: url('company.png') center / cover no-repeat; transform: scale(1.02); }
.project-hero::after { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, #050713 0%, rgba(5,7,19,.15) 56%, rgba(5,7,19,.5) 100%), linear-gradient(90deg, rgba(3,5,15,.55), transparent 55%); }
.project-header { position: relative; z-index: 2; }
.back-link { color: #dbe5ff; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.back-link span { margin-right: 12px; color: var(--cyan); }
.project-title { position: absolute; z-index: 1; left: max(32px, calc((100vw - 1400px) / 2)); right: max(32px, calc((100vw - 1400px) / 2)); bottom: 7vh; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.project-title .eyebrow { margin-bottom: 18px; }
.project-title h1 { font-size: clamp(92px, 18vw, 270px); line-height: .65; text-shadow: 0 12px 65px rgba(4,5,18,.7); }
.project-title > p { max-width: 390px; margin: 0 0 10px; padding-left: 24px; border-left: 1px solid var(--cyan); color: #d4dcf0; line-height: 1.7; }
.project-details { padding: 120px max(32px, calc((100vw - 1400px) / 2)); background: radial-gradient(circle at 15% 0%, rgba(24,170,218,.12), transparent 30%), #050713; }
.project-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; }
.project-lead h2 { margin: 24px 0 30px; max-width: 760px; font-size: clamp(52px, 6vw, 94px); line-height: .96; letter-spacing: -.04em; }
.project-lead h2 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.65); }
.project-lead > p { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.feature-list { display: grid; align-content: end; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-list div { padding: 25px 28px; display: grid; grid-template-columns: 38px 1fr; align-items: center; background: #090d1b; }
.feature-list strong { color: var(--cyan); font: 11px/1 ui-monospace, monospace; }
.feature-list span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-footer-cta { min-height: 420px; padding: 100px 32px; display: grid; place-items: center; text-align: center; border-top: 1px solid var(--line); background: linear-gradient(rgba(5,7,19,.78), rgba(5,7,19,.96)), url('games/bricks/bricks1.png') center / cover no-repeat; }
.project-footer-cta .eyebrow { justify-content: center; }
.project-footer-cta h2 { margin: 0; font-size: clamp(58px, 8vw, 118px); line-height: .9; }
.project-footer-cta > div > p:not(.eyebrow) { margin: 22px 0 0; color: var(--muted); }
.project-footer-cta .button { margin-top: 34px; }

@media (max-width: 720px) {
  .site-header, .hero-content { width: min(100% - 40px, 1400px); }
  .site-header { padding: 20px 0; }
  .nav { gap: 18px; }
  .nav a:first-child { display: none; }
  .hero-content { padding-top: 16vh; }
  h1 { font-size: clamp(49px, 16vw, 76px); }
  .hero-copy { max-width: 90%; }
  .scroll-cue { display: none; }
  .games-section { padding: 84px 20px; }
  .game-intro { grid-template-columns: 1fr; margin-top: 52px; }
  .text-link { grid-column: 1; }
  .about-section { grid-template-columns: 1fr; }
  .about-visual { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-copy { padding: 76px 20px; }
  .about-copy .eyebrow { margin-top: 52px; }
  .values { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p { text-align: left; }
  footer > a:last-child { justify-self: start; }
  .project-title { display: block; bottom: 5vh; left: 20px; right: 20px; }
  .project-title h1 { font-size: clamp(76px, 29vw, 150px); }
  .project-title > p { margin-top: 38px; font-size: 14px; }
  .project-details { padding: 86px 20px; }
  .project-grid { grid-template-columns: 1fr; gap: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
