@font-face { font-family: 'Sora'; src: url('fonts/sora.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
/* Quarterturn: dark grey and white, flat and clean. Nothing pixelated: the studio's look sits apart from its games'. */
:root { --bg: #1c1c1e; --raise: #242427; --line: #34343a; --text: #ffffff; --mist: #9a9aa2; --max: 1040px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Sora, system-ui, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 0; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.035em; }
.brand svg { width: 34px; height: 34px; }
.brand i { font-style: normal; color: var(--mist); }
nav a { color: var(--mist); text-decoration: none; margin-left: 22px; font-size: 0.95rem; }
nav a:hover, nav a:focus-visible { color: var(--text); }
/* Phones: the links get a row of their own under the logo rather than running off the side. */
@media (max-width: 520px) { header nav { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; } header nav a { margin-left: 0; } }
.game { display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: clamp(28px, 6vw, 72px); align-items: center; background: var(--raise); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 56px); }
.kicker { margin: 0 0 10px; color: var(--mist); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
h2 { margin: 0 0 14px; font-weight: 600; font-size: clamp(1.8rem, 4.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; }
.game p { margin: 0 0 14px; color: #d4d4d9; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.pills li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; color: var(--mist); }
.pills li.on { background: #fff; border-color: #fff; color: var(--bg); font-weight: 600; }
.phone { justify-self: center; width: min(100%, 270px); border-radius: 36px; padding: 9px; background: #101012; box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, 0.45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 28px; }
.about { padding: clamp(56px, 9vw, 96px) 0; display: grid; gap: 14px; max-width: 40em; }
.about p { margin: 0; color: var(--mist); font-size: 1.1rem; }
.about p b { color: var(--text); font-weight: 600; }
.contact { border-top: 1px solid var(--line); padding: 40px 0 56px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; color: var(--mist); font-size: 0.95rem; }
.contact a.mail { color: var(--text); font-weight: 600; font-size: 1.05rem; }
.contact nav a { margin: 0 0 0 20px; }
.doc { max-width: 42em; padding: 24px 0 72px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.3rem; margin: 40px 0 8px; }
.doc p, .doc li { color: #d4d4d9; }
.doc .when { color: var(--mist); margin: 0 0 28px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

.game.bot { grid-template-columns: minmax(0, 300px) 1fr; margin-top: clamp(20px, 3vw, 32px); }
/* Every other bot puts its logo on the right, so the page zigzags. */
.game.bot.flip { grid-template-columns: 1fr minmax(0, 300px); }
.game.bot.flip .icon { order: 2; }
.bot .icon { border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, 0.45); }
.bot .icon img { display: block; width: 100%; height: auto; }
.bot .actions { margin-top: 24px; }
@media (max-width: 760px) { .game, .game.bot, .game.bot.flip { grid-template-columns: 1fr; } .bot .icon, .game.bot.flip .icon { order: -1; width: min(72%, 250px); justify-self: center; } .phone { order: -1; width: min(72%, 250px); } nav a { margin-left: 16px; } }

/* The home page: a huge loader, half off the left of the screen, and the words on the right. */
:root { --hero: max(560px, calc(100svh - 84px)); }
.hero { position: relative; overflow: hidden; min-height: var(--hero); display: flex; align-items: center; margin-bottom: clamp(32px, 6vw, 72px); }
.giant { position: absolute; left: 0; top: 50%; width: min(66vw, 1400px); height: auto; transform: translate(-50%, -50%); }
.copy { position: relative; margin-left: max(16px, 41vw); margin-right: 16px; max-width: 800px; padding: 40px 0; }
.copy .kicker { margin-bottom: 18px; }
h1 { margin: 0; font-weight: 600; font-size: clamp(2.6rem, 4.8vw, 5rem); letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
h1 span { color: var(--mist); }
.lede { margin: 26px 0 0; color: var(--mist); max-width: 30em; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.btn { display: inline-block; background: #fff; color: var(--bg); text-decoration: none; font-weight: 600; padding: 13px 26px; border-radius: 999px; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn:hover { transform: translateY(-1px); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--mist); }
/* Softly: the light glides from one tile to the next. Each tile swells up to white as the one before it eases off, so there's never a snap. A step every 0.8 seconds. */
.giant .tile { animation: lit 3.2s ease-in-out infinite; }
.giant .t1 { animation-delay: 0s } .giant .t2 { animation-delay: -2.4s } .giant .t3 { animation-delay: -1.6s } .giant .t0 { animation-delay: -0.8s }
@keyframes lit { 0% { fill: #ffffff } 25% { fill: #8a8a92 } 50% { fill: #56565e } 75% { fill: #38383e } 100% { fill: #ffffff } }
@media (prefers-reduced-motion: reduce) { .giant .tile { animation: none; } }
@media (max-width: 900px) { .wide { display: none; } }
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .giant { width: 104vw; top: 0; transform: translate(-50%, 0); }
  .copy { margin-left: 16px; padding-top: 92vw; padding-bottom: 8px; }
  h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  h1 span { display: block; white-space: nowrap; }
}

/* One word in a big sentence, in Bricolage Grotesque and leaning over (it has no italic of its own, so the browser slants it). */
.flair { font-family: 'Bricolage Grotesque', Sora, sans-serif; font-style: italic; font-weight: 700; font-optical-sizing: auto; letter-spacing: -0.035em; color: var(--text); padding-right: 0.06em; }
