/* BigAyat Studios: games.bigayat.com */

:root {
  --bg: #0c0f0d;
  --bg-2: #101512;
  --panel: #161c18;
  --fg: #f3f1ea;
  --muted: #b0aea4;
  --gold: #d9b45a;
  --gold-hi: #ecc96e;
  --gold-ink: #17140b;
  --green: #008751;
  --green-hi: #3cc485;
  --indigo: #3a51a8;
  --line: rgba(243, 241, 234, 0.09);
  --line-2: rgba(243, 241, 234, 0.16);
  --wide: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar-h: 64px;
  --adire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M0 .5h80M.5 0v80M40 0v80M0 40h80' stroke-width='.8'/%3E%3Ccircle cx='20' cy='20' r='13'/%3E%3Ccircle cx='20' cy='20' r='8'/%3E%3Ccircle cx='20' cy='20' r='2.5' fill='black'/%3E%3Cpath d='M48 7v26M56 7v26M64 7v26M72 7v26' stroke-dasharray='3 3.5'/%3E%3Cg fill='black' stroke='none'%3E%3Ccircle cx='10' cy='50' r='1.7'/%3E%3Ccircle cx='20' cy='50' r='1.7'/%3E%3Ccircle cx='30' cy='50' r='1.7'/%3E%3Ccircle cx='10' cy='60' r='1.7'/%3E%3Ccircle cx='20' cy='60' r='1.7'/%3E%3Ccircle cx='30' cy='60' r='1.7'/%3E%3Ccircle cx='10' cy='70' r='1.7'/%3E%3Ccircle cx='20' cy='70' r='1.7'/%3E%3Ccircle cx='30' cy='70' r='1.7'/%3E%3C/g%3E%3Cpath d='M44 56l8-8 8 8 8-8 8 8M44 72l8-8 8 8 8-8 8 8'/%3E%3C/svg%3E");
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--gold-ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.btn-gold:focus-visible { outline-color: #fff; }
main:focus { outline: none; }

[id] { scroll-margin-top: var(--bar-h); }

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gut));
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* Skip link */
.skip {
  position: absolute; top: -100px; left: 10px; z-index: 100;
  background: var(--gold); color: var(--gold-ink);
  padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.bar.scrolled {
  background: rgba(12, 15, 13, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); gap: 12px; }

.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.mark b { font-weight: 800; font-size: 17px; letter-spacing: 0.14em; color: #fff; }
.mark span {
  font-weight: 400; font-size: 11px; letter-spacing: 0.36em; color: var(--gold);
  padding-left: 10px; border-left: 1px solid rgba(217, 180, 90, 0.45); line-height: 1.2;
}

.bar ul { display: flex; gap: 2px; }
.bar ul a {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 0.2s;
}
.bar ul a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.bar ul a:hover, .bar ul a.active { color: var(--fg); }
.bar ul a:hover::after, .bar ul a.active::after { transform: scaleX(1); }

/* Shared type */
.eyebrow, .label, .kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
}
.label { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); margin-bottom: 18px; }
.flag {
  display: inline-block; width: 21px; height: 12px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--green) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%);
}
.section-title {
  font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin-top: 16px; max-width: 560px; }
.contact-line { color: var(--muted); font-size: 16px; margin-top: 22px; }
.contact-line a { color: var(--gold); text-underline-offset: 3px; display: inline-block; padding: 12px 0; }
.contact-line a:hover { color: var(--gold-hi); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 12px 32px -12px rgba(217, 180, 90, 0.65); }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(217, 180, 90, 0.8); }
.btn-gold:hover svg { transform: translate(2px, -2px); }
.btn-gold:active { transform: translateY(0); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--bar-h) + 40px) 0 120px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(0, 135, 81, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 85%, rgba(217, 180, 90, 0.10), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: var(--indigo); opacity: 0.16;
  -webkit-mask: var(--adire) 0 0 / 80px 80px repeat; mask: var(--adire) 0 0 / 80px 80px repeat;
}
/* The hero's first look: the poster as its background (a phone's 800 wide), the loop playing over it once the page has loaded. */
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/hero-poster-800.jpg") center / cover no-repeat;
}
@media (min-width: 801px) {
  .hero-media { background-image: url("assets/hero-poster.jpg"); }
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video.failed { display: none; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(12, 15, 13, 0.62), rgba(12, 15, 13, 0.2) 80%),
    linear-gradient(180deg, rgba(12, 15, 13, 0.82) 0%, rgba(12, 15, 13, 0.5) 30%, rgba(12, 15, 13, 0.55) 65%, var(--bg) 100%);
}
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { color: rgba(243, 241, 234, 0.82); margin-bottom: clamp(18px, 3vw, 30px); font-size: clamp(11px, 1.2vw, 13px); letter-spacing: 0.32em; }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 0.92; }
.wm-big {
  font-weight: 800; color: #fff;
  font-size: clamp(54px, 19vw, 196px); letter-spacing: 0.05em; padding-left: 0.05em;
  text-shadow: 0 6px 50px rgba(0, 0, 0, 0.45);
}
.wm-small {
  color: var(--gold); font-weight: 400; line-height: 1;
  font-size: clamp(15px, 2.3vw, 30px); letter-spacing: 0.62em; padding-left: 0.62em;
  margin-top: clamp(14px, 2vw, 26px);
}
.rule { width: clamp(84px, 11vw, 150px); height: 2px; background: var(--gold); margin: clamp(24px, 3.4vw, 40px) auto; border-radius: 2px; }
.hero-line { font-size: clamp(19px, 2.4vw, 30px); font-weight: 300; color: var(--fg); max-width: 22ch; line-height: 1.3; text-wrap: balance; }
/* The flagship in the hero: the game's name as the wordmark (longer than the studio's, so a little smaller), its line, and the way in. */
.hero-game .wm-big { font-size: clamp(44px, 12.5vw, 168px); letter-spacing: 0.03em; padding-left: 0.03em; }
.hero-game + .rule + .hero-line { max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(28px, 3.6vw, 40px); }
.btn-ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(12, 15, 13, 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.hero-note { margin-top: 16px; }
/* The newest devlog entry on the home page, in the devlog's own card. */
.news { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); }
.news .news-list { padding: clamp(20px, 3vw, 32px) 0 4px; }
.news-all a { color: var(--gold); text-underline-offset: 3px; display: inline-block; padding: 12px 0; font-weight: 500; }
.news-all a:hover { color: var(--gold-hi); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 6px 10px;
  color: var(--muted); text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue span { padding-left: 0.3em; }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: rgba(243, 241, 234, 0.25); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--gold); animation: cue 2.2s var(--ease) infinite;
}
.scroll-cue:hover { color: var(--fg); }
@keyframes cue { to { top: 110%; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise 1.1s var(--ease) both; }
  .hero-in > :nth-child(2) { animation-delay: 0.08s; }
  .hero-in > :nth-child(3) { animation-delay: 0.22s; animation-name: grow; }
  .hero-in > :nth-child(4) { animation-delay: 0.32s; }
  .hero-in > :nth-child(5) { animation-delay: 0.42s; }
  .hero-in > :nth-child(6) { animation-delay: 0.5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes grow { from { opacity: 0; transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .scroll-cue i::after { animation: none; top: 30%; }
}

/* Games */
.games { position: relative; }
.games-head { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(8px, 2vw, 24px); }

.game { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 8vw, 120px) 0; }
.game-bg {
  position: absolute; inset: -12%; z-index: -2;
  background-position: center; background-size: cover;
  filter: blur(80px) saturate(1.3); opacity: 0.32; transform: translateZ(0);
}
.game::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 15, 13, 0.35) 22%, rgba(12, 15, 13, 0.35) 78%, var(--bg) 100%);
}
.game-nd { --accent: var(--green-hi); }
/* The glows are blurred 80 pixels: a 320 wide picture looks the same and weighs a few kilobytes. */
.game-nd .game-bg { background-image: url("assets/nd-glow.webp"); }
.game-air { --accent: var(--gold); }
.game-air .game-bg { background-image: url("assets/airport-glow.webp"); opacity: 0.26; }

.game-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.game-head .game-lede { max-width: 46ch; }

.missing { display: none !important; }

.kicker { color: var(--accent); font-size: 12px; letter-spacing: 0.2em; }
.kicker span { color: var(--muted); padding: 0 0.35em; }
.game-name {
  font-size: clamp(42px, 5.6vw, 84px); font-weight: 800; line-height: 0.98; letter-spacing: -0.025em;
  margin: 14px 0 0; text-wrap: balance;
}
.tagline {
  margin-top: 14px; color: var(--gold); font-weight: 500; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase;
}
.game-lede { color: var(--fg); font-size: clamp(18px, 1.7vw, 22px); font-weight: 300; line-height: 1.45; margin-top: 18px; max-width: 34ch; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 32px 0 36px; counter-reset: f; }
.features li { position: relative; padding-top: 16px; border-top: 1px solid var(--line-2); counter-increment: f; }
.features li::before {
  content: counter(f, decimal-leading-zero); display: block; margin-bottom: 6px;
  color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
}
.features li::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: var(--accent);
  transition: width 0.5s var(--ease);
}
.features li:hover::after { width: 100%; }
.features b { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.features span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 4px; }

/* Airport */
.player {
  position: relative; margin-top: clamp(32px, 4vw, 52px);
  border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--line-2);
}
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  border: 0; cursor: pointer; color: #fff; font: inherit;
  background: radial-gradient(ellipse at center, rgba(12, 15, 13, 0.15), rgba(12, 15, 13, 0.6));
  transition: background-color 0.3s;
}
.player-play[hidden] { display: none; }
.player-play:focus-visible { outline-offset: -6px; border-radius: var(--radius); }
.pp-chip {
  position: absolute; top: clamp(12px, 2vw, 22px); left: clamp(12px, 2vw, 22px);
  padding: 6px 12px; border-radius: 999px; background: rgba(12, 15, 13, 0.7); border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.pp-icon {
  display: grid; place-items: center; width: clamp(68px, 8.5vw, 108px); aspect-ratio: 1; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 12px rgba(217, 180, 90, 0.2), 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.pp-icon::before {
  content: ""; width: 0; height: 0; margin-left: 12%;
  border-style: solid; border-width: 0.6em 0 0.6em 1em; border-color: transparent transparent transparent var(--gold-ink);
  font-size: clamp(18px, 2.2vw, 28px);
}
.pp-text { font-size: 13px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.player-play:hover .pp-icon { transform: scale(1.07); box-shadow: 0 0 0 18px rgba(217, 180, 90, 0.16), 0 24px 60px rgba(0, 0, 0, 0.55); }

.features-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(36px, 4.5vw, 56px) 0 0; }
.game-air .features-4 { margin-bottom: clamp(36px, 4.5vw, 56px); }

.stills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stills:not(:has(li:not(.missing))) { display: none; }
.stills figure {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px var(--line);
  background: radial-gradient(ellipse at 50% 30%, #1b2440, #0b0f1a 75%);
}
.stills img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.stills figure:hover img { transform: scale(1.05); }
.stills figcaption {
  position: absolute; inset: auto 0 0; padding: 28px 14px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.outro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; margin-top: clamp(64px, 9vw, 120px); }
.outro-line { font-size: clamp(32px, 5.2vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.outro-line em { font-style: normal; color: var(--gold); }
.outro .cta-note { margin-top: -8px; }

/* Adire texture */
.adire, .adire-band::before {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--indigo); opacity: 0.2;
  -webkit-mask: var(--adire) 0 0 / 80px 80px repeat; mask: var(--adire) 0 0 / 80px 80px repeat;
}
.adire-band { position: relative; height: 72px; overflow: hidden; }
.adire-band::before { content: ""; opacity: 0.42; }
.adire-band::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg), transparent 18%, transparent 82%, var(--bg)),
    linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg));
}

/* Studio */
.studio {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 11vw, 150px) 0;
  background: radial-gradient(ellipse 60% 70% at 85% 50%, rgba(58, 81, 168, 0.16), transparent 70%), var(--bg-2);
}
.studio .adire { z-index: -1; opacity: 0.1; }
.studio .adire::after { content: none; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.studio-statement { font-size: clamp(26px, 3.3vw, 46px); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; text-wrap: pretty; }
.studio-statement em { font-style: normal; color: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); max-width: 620px; }
.facts div { border-top: 1px solid var(--line-2); padding-top: 14px; }
.facts dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.facts dd { font-size: clamp(20px, 2vw, 26px); font-weight: 600; margin-top: 4px; }
.founder { margin-top: clamp(32px, 4vw, 44px); font-size: 18px; color: var(--muted); }
.founder a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: color 0.2s;
}
.founder a:hover { color: var(--gold); }
.motif svg { width: 100%; max-width: 420px; height: auto; margin-left: auto; border-radius: 22px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(112, 136, 216, 0.25); }

/* Press */
.press { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.press .cta-row { margin-top: 32px; }
.btn-stack { display: inline-flex; align-items: baseline; gap: 10px; }
.btn-meta { font-weight: 500; font-size: 13px; opacity: 0.75; }
.previews { display: grid; gap: 22px; }
.pv-box {
  position: relative; display: grid; place-items: center; aspect-ratio: 1200 / 283; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2);
}
.pv-box img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.pv-clear .pv-box {
  aspect-ratio: 1200 / 400;
  background: linear-gradient(rgba(12, 15, 13, 0.45), rgba(12, 15, 13, 0.6)), url("assets/airport-960.webp") center 40% / cover;
}
.pv-clear .pv-box img { height: auto; object-fit: contain; }
.pv-plate .pv-box { background: #0c0f16; }
.pv-fallback { display: none; flex-direction: column; align-items: center; line-height: 1; }
.pv-fallback b { font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: 0.06em; color: #fff; }
.pv-fallback small { margin-top: 10px; font-size: clamp(9px, 0.9vw, 12px); letter-spacing: 0.5em; padding-left: 0.5em; color: var(--gold); }
.pv-box.missing { display: grid !important; }
.pv-box.missing img { display: none; }
.pv-box.missing .pv-fallback { display: flex; }
.pv figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Footer */
.foot { position: relative; background: var(--bg); padding: 48px 0 40px; }
.foot { border-top: 1px solid var(--line); }
.flag-line {
  position: absolute; top: -2px; left: 50%; width: 96px; height: 3px; transform: translateX(-50%); border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%);
}
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.social { display: flex; gap: 8px; list-style: none; margin: 14px 0 0 -10px; padding: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--fg); transition: color 0.2s, background-color 0.2s;
}
.social a:hover { color: var(--gold); background: var(--line); }
.social svg { width: 20px; height: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 8px; justify-content: flex-end; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--fg); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s;
}
.foot-links a:hover { color: var(--gold); }
.copy { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* A safety net: if the page's script has not run (an error, a blocked script), everything shows after a moment anyway. */
.js:not(.ready) .reveal { animation: reveal-safety 0.6s var(--ease) 2.5s forwards; }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Layout steps */
@media (max-width: 1080px) {
  .features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .studio-grid, .press-grid { grid-template-columns: minmax(0, 1fr); }
  .motif svg { margin: 0 auto; max-width: 360px; }
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-head { align-items: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .features, .features-4 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stills figcaption { font-size: 12px; padding: 22px 10px 8px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; margin-left: -10px; }
  .facts { gap: 12px; }
  .facts dd { font-size: 16px; }
  .btn-stack { flex-direction: column; align-items: center; gap: 0; line-height: 1.3; }
  .btn { width: 100%; white-space: normal; text-align: center; padding: 12px 22px; }
  .cta-row { flex-direction: column; align-items: stretch; text-align: center; }
  .outro .btn { width: 100%; }
}

@media (max-width: 440px) {
  .mark span { display: none; }
  .bar ul a { padding: 0 10px; }
  .bar ul a::after { left: 10px; right: 10px; }
  .previews { grid-template-columns: minmax(0, 1fr); }
}

/* Devlog: the list and its entries. The top bar is solid from the start (no hero under it). */
.bar ul a[aria-current="page"] { color: var(--fg); }
.bar ul a[aria-current="page"]::after { transform: scaleX(1); }
.bar-solid {
  background: rgba(12, 15, 13, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}

.wrap-narrow { max-width: calc(760px + 2 * var(--gut)); }

.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--bar-h) + clamp(44px, 8vw, 104px)) 0 clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 20% 0%, rgba(0, 135, 81, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(217, 180, 90, 0.08), transparent 70%),
    var(--bg);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--indigo); opacity: 0.12;
  -webkit-mask: var(--adire) 0 0 / 80px 80px repeat; mask: var(--adire) 0 0 / 80px 80px repeat;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 15, 13, 0.4), rgba(12, 15, 13, 0) 40%, var(--bg));
}
.crumbs { display: flex; flex-wrap: wrap; gap: 0 8px; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; transition: color 0.2s; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs span[aria-hidden] { opacity: 0.6; }
.crumbs [aria-current] { color: var(--fg); }
.page-title {
  font-size: clamp(36px, 5.4vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-sub { color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); font-weight: 300; line-height: 1.5; margin-top: 18px; max-width: 46ch; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 24px;
  color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.post-meta > * + *::before { content: "/"; margin-right: 18px; color: var(--gold); opacity: 0.7; }

/* The list of entries */
.post-list { list-style: none; padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 128px); display: grid; gap: 18px; }
.post-card {
  position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius);
  background: var(--panel); box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.post-card:hover { box-shadow: 0 0 0 1px rgba(217, 180, 90, 0.5), 0 30px 60px -36px rgba(0, 0, 0, 0.9); transform: translateY(-2px); }
.post-card .post-meta { margin-top: 0; }
.post-card h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin-top: 12px; text-wrap: balance; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card h2 a:focus-visible { outline: none; }
.post-card h2 a:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 3px; }
.post-card p { color: var(--muted); margin-top: 12px; max-width: 62ch; }
.post-card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold); font-weight: 600; font-size: 15px; }
.post-card .more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.post-card:hover .more svg { transform: translateX(3px); }

/* An entry */
.prose { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(64px, 9vw, 112px); font-size: 18px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose .lede { font-size: clamp(19px, 2vw, 23px); font-weight: 300; line-height: 1.55; }
.prose section { --accent: var(--gold); margin-top: clamp(44px, 6vw, 64px); }
.prose section > * + * { margin-top: 1.1em; }
.prose .post-nd { --accent: var(--green-hi); }
.prose .kicker { display: block; color: var(--accent); }
.prose h2 {
  position: relative; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-2);
  font-size: clamp(27px, 3.2vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance;
}
.prose .kicker + h2 { margin-top: 10px; }
.prose h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: var(--accent); }
.prose a:not(.btn) { color: var(--gold); text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--gold-hi); }
.prose strong { font-weight: 600; }
.prose figure { margin: 1.8em 0; }
.prose figure img {
  width: 100%; height: auto; border-radius: 14px; background: var(--panel);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--line-2);
}
.prose figcaption { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 12px; }
.prose .cta-row { margin-top: 28px; }
.sign-off { margin-top: clamp(44px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--gold-hi); }

@media (max-width: 600px) {
  .prose { font-size: 17px; }
  .post-meta > * + *::before { margin-right: 12px; }
  .post-meta { gap: 4px 12px; }
}

/* Four links in the top bar: a little tighter on the narrowest phones. */
@media (max-width: 400px) {
  .bar ul a { padding: 0 6px; font-size: 14px; }
  .bar ul a::after { left: 6px; right: 6px; }
}
@media (max-width: 350px) {
  .bar-in { gap: 8px; }
  .mark b { font-size: 15px; letter-spacing: 0.1em; }
  .bar ul a { padding: 0 4px; font-size: 13px; }
  .bar ul a::after { left: 4px; right: 4px; }
}

/* The way back to the studio's home, bigayat.com: gold, and on a phone only in the footer, where there is room. */
.bar ul a.bar-studio { color: var(--gold); gap: 6px; }
.bar ul a.bar-studio:hover { color: var(--gold-hi); }
@media (max-width: 760px) {
  .bar ul li:has(.bar-studio) { display: none; }
}
