/* Homepage (index.html) only. porting.html and company-profile.html keep styles.css.
   Layout: full-bleed showreel with one line on top, then four short labelled index sections.
   Accents are the two colours of the logo star: magenta #ff1863 and cyan #00aeff
   (--cyan-text is a deeper cyan for small text on the light ground). */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #fbfbfa; --ink: #111214; --mute: #6f7178; --soft: #e3e3e6; --field: #ffffff;
  --magenta: #ff1863; --cyan: #00aeff; --cyan-text: #0088cc;
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111214; --ink: #f1f1ef; --mute: #9a9ca3; --soft: #2a2b30; --field: #1a1b1f; --cyan-text: #00aeff; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font: 500 12px/1.45 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.pad { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* Hero showreel */
.hero { position: relative; background: #0b0c10; color: #fff; overflow: hidden; }
.hero video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 88vh; object-fit: cover; background: #0b0c10; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.65) 100%); }
.bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-bottom: 18px; }
.logo img { display: block; height: 52px; width: auto; filter: drop-shadow(0 1px 8px rgba(0,0,0,.35)); }
.bar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.bar nav a { text-decoration: none; opacity: .85; }
.bar nav a:hover { opacity: 1; }
/* The showreel carries a strip of platform logos along its bottom edge: keep the line above it. */
.claim { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: max(48px, 7.5vw);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.claim h1 { margin: 0; font-weight: 800; font-variation-settings: "wdth" 72; font-size: clamp(46px, 8.4vw, 136px); line-height: .88;
  letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; max-width: 12ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.claim h1 em { font-style: normal; color: var(--magenta); }
.pp { font: inherit; background: rgba(0,0,0,.25); color: #fff; border: 1px solid rgba(255,255,255,.6); padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.pp:hover { border-color: #fff; }

/* Sections */
.blk { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: 52px; border-bottom: 1px solid var(--ink); }
.blk > .lab { grid-column: 1 / 4; margin: 0; color: var(--magenta); }
#games > .lab, #contact > .lab { color: var(--cyan-text); }
.lab small { display: block; color: var(--mute); margin-top: 6px; font: inherit; max-width: 26ch; }
.blk > .body { grid-column: 4 / -1; min-width: 0; }

/* In development */
.idx { list-style: none; margin: 0; padding: 0; }
.idx > li { border-top: 1px solid var(--soft); }
.idx > li:last-child { border-bottom: 1px solid var(--soft); }
.idx .hd { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px 0; width: 100%;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.idx .th { width: 120px; aspect-ratio: 460 / 215; object-fit: cover; display: block; }
.idx .t { font-size: 34px; font-weight: 650; font-variation-settings: "wdth" 86; letter-spacing: -.015em; line-height: 1.05; }
.idx .w { color: var(--cyan-text); text-align: right; }
.idx > li:hover .t, .idx > li.open .t { color: var(--magenta); }
.idx .det { display: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; padding: 4px 0 24px 140px; }
.idx > li.open .det { display: grid; }
.det p { margin: 0 0 14px; max-width: 52ch; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; padding: 9px 14px; }
.btn:hover { background: var(--magenta); color: #fff; }
.lnk { margin-left: 14px; text-decoration: none; border-bottom: 1px solid currentColor; }
.lnk:hover { color: var(--magenta); }

/* Games we worked on */
.arch > button { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 20px; background: none; border: 0;
  border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); padding: 18px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.arch > button .t { font-size: 34px; font-weight: 650; font-variation-settings: "wdth" 86; letter-spacing: -.015em; line-height: 1.05; }
.arch > button:hover .t { color: var(--cyan-text); }
.arch .pm { color: var(--cyan-text); font: 500 28px/1 var(--mono); }
.alist { list-style: none; margin: 0; padding: 8px 0 0; columns: 2; column-gap: 32px; }
.alist li { break-inside: avoid; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--soft); }
.alist a { text-decoration: none; font-size: 18px; font-weight: 500; }
.alist a:hover { color: var(--cyan-text); }
.alist .r { color: var(--mute); text-align: right; }

/* Services */
.lede { margin: 0 0 18px; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.15; font-weight: 500; font-variation-settings: "wdth" 92;
  letter-spacing: -.015em; max-width: 24ch; text-wrap: balance; }
.lede em { font-style: normal; color: var(--magenta); }
.lede .c { color: var(--cyan-text); }
.more { text-decoration: none; border-bottom: 1px solid currentColor; }
.more:hover { color: var(--magenta); }

/* Contact */
.mail { display: inline-block; font-weight: 800; font-variation-settings: "wdth" 70; font-size: clamp(26px, 5vw, 76px); line-height: .95;
  text-transform: uppercase; text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { color: var(--cyan-text); }
.copy { display: block; font: inherit; background: none; color: var(--mute); border: 1px solid var(--soft); padding: 5px 10px; cursor: pointer; margin-top: 12px; }
.copy:hover { color: var(--ink); border-color: var(--ink); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 44px; }
.two h2 { margin: 0 0 6px; font-size: 22px; font-weight: 650; }
.two p { margin: 0 0 16px; color: var(--mute); max-width: 44ch; }
.nl .row { display: flex; }
.nl input[type="email"] { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--ink); border-right: 0; padding: 11px 12px; border-radius: 0; }
.nl button { font: inherit; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 0 16px; cursor: pointer; }
.nl button:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.nl .ck { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; color: var(--mute); }
.nl .ck input { margin-top: 3px; accent-color: var(--magenta); }
.nl .err { margin: 10px 0 0; font-size: 14px; color: var(--magenta); }
.nl .hp { position: absolute; left: -5000px; }
.soc { display: flex; flex-wrap: wrap; gap: 8px; }
.soc a { text-decoration: none; border: 1px solid var(--ink); padding: 7px 12px; }
.soc a:hover { background: var(--ink); color: var(--bg); }
.soc a.dc { background: #5865f2; border-color: #5865f2; color: #fff; }
.soc a.dc:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--mute); padding-block: 20px 32px; }
footer a, footer button { color: inherit; text-decoration: none; background: none; border: 0; font: inherit; padding: 0; cursor: pointer; }
footer a:hover, footer button:hover { color: var(--ink); }
footer .links { display: flex; gap: 18px; }

.peek { position: fixed; left: 0; top: 0; width: 320px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 9; }
.peek img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

/* Cookie banner + modal (same storage key and event as script.js on the other pages) */
.cookie-banner { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); max-width: 560px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--ink); padding: 18px; display: grid; gap: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.cookie-banner h2, .cookie-modal h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; }
.cookie-banner p, .cookie-modal p { margin: 0 0 6px; font-size: 14.5px; color: var(--mute); }
.cookie-banner a { font-size: 14px; }
.cookie-actions, .cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button, .cookie-modal-actions button { font: 500 12px/1 var(--mono); letter-spacing: .03em; text-transform: uppercase;
  background: none; color: var(--ink); border: 1px solid var(--ink); padding: 9px 12px; cursor: pointer; }
.cookie-actions .solid, .cookie-modal-actions .solid { background: var(--ink); color: var(--bg); }
.cookie-modal { position: fixed; z-index: 21; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 16px; }
.cookie-modal-panel { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); padding: 22px; max-width: 480px; width: 100%; display: grid; gap: 14px; }
.cookie-option { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); padding: 12px 0; }
.cookie-option small { display: block; color: var(--mute); font-size: 13.5px; }

/* Buttons that carry .mono keep the mono face (their own rules reset font to inherit). */
.pp.mono, .copy.mono, .nl button.mono { font: 500 12px/1.45 var(--mono); letter-spacing: .03em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { .peek { transition: none; } }

@media (max-width: 900px) {
  .pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .logo img { height: 40px; }
  .bar nav { display: none; }
  /* On phones the video stays 16:9 (so its platform strip is not cut) and the line sits below it. */
  .hero video { max-height: none; }
  .claim { position: relative; padding-top: 22px; padding-bottom: 30px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .claim h1 { font-size: clamp(40px, 12.5vw, 64px); }
  .blk { display: block; padding-block: 40px; }
  .blk > .lab { margin-bottom: 20px; }
  .idx .hd { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .idx .th { width: 84px; }
  .idx .w { grid-column: 2; text-align: left; margin-top: -10px; }
  .idx .t, .arch > button .t { font-size: 24px; }
  .idx .det { grid-template-columns: 1fr; padding-left: 0; }
  .alist { columns: 1; }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .peek { display: none; }
}
