/* Battery Powered Bird — studio site styles
   One stylesheet for every page. Tweak the tokens below to restyle the whole site. */

:root {
  --bg: #ffffff;                       /* true white */
  --bg-2: #050599;                     /* alternating bands are solid brand blue */
  --ink: #050599;                      /* two colours only: every grey is the blue at reduced strength */
  --ink-2: rgba(5,5,153,.82);
  --muted: rgba(5,5,153,.6);
  --line: rgba(5,5,153,.18);
  --accent: #050599;      /* brand blue */
  --accent-ink: #ffffff;
  --accent-2: #050599;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.prose a, .legal a, .callout a, .aside-card a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand .mark { width: 38px; height: 38px; border-radius: 9px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(5,5,153,.08); color: var(--ink); }
.nav-links .cta { background: var(--accent); color: #fff; }
.nav-links .cta:hover { background: #0707c2; color: #fff; }
@media (max-width: 640px) { .nav-links a:not(.cta) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .12s;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #0707c2; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #050599; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(5,5,153,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 88px 0 56px; }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); max-width: 52ch; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-art .shot {
  position: absolute; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(5,5,153,.45), 0 0 0 1px rgba(5,5,153,.12);
  background: var(--accent);
}
.hero-art .shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .s1 { left: 0; top: 8%; width: 66%; aspect-ratio: 16/9; transform: rotate(-3deg); }
.hero-art .s2 { right: 0; top: 34%; width: 58%; aspect-ratio: 16/10; transform: rotate(2.5deg); z-index: 2; }
.hero-art .s3 { left: 22%; bottom: 0; width: 30%; aspect-ratio: 2/3; transform: rotate(-1deg); z-index: 3; border-radius: 22px; }
.hero-art .blob {
  position: absolute; inset: 10% 5% 5% 10%; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--accent), transparent 65%);
  opacity: .22; filter: blur(34px); z-index: 0;
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 56ch; color: var(--ink-2); margin: 0; }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .games { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,40,.5); }
.card .thumb { aspect-ratio: 16/10; background: var(--accent); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(5,5,153,.08); color: var(--ink);
}
.tag.live { background: var(--accent); color: var(--accent-ink); }
.tag.soon { background: #fff; border: 1px solid var(--line); }

/* Studio strip */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar h3 { margin-bottom: 6px; }
.pillar p { color: var(--ink-2); margin: 0; }
.pillar .num { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: 10px; }

/* Game page */
.game-hero { padding: 64px 0 40px; }
.game-hero .top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .game-hero .top { grid-template-columns: 1fr; } }
.game-hero .art { border-radius: var(--radius); overflow: hidden; background: var(--accent); box-shadow: 0 30px 60px -24px rgba(5,5,153,.5); }
.game-hero .art img { width: 100%; }
.game-hero .art.phone { background: transparent; box-shadow: none; display: flex; justify-content: center; }
.game-hero .art.phone img { max-height: 620px; width: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.facts .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts .v { font-family: var(--display); font-weight: 600; font-size: 18px; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.prose h2 { margin-top: 1.4em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.gallery { align-items: start; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; }
.gallery figure img { flex: 1; object-fit: cover; }
.gallery img { width: 100%; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--ink-2); background: #fff; }
.controls { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; font-size: 15px; }
.controls kbd {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  background: #fff; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; padding: 3px 9px;
}
.callout { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 22px; }
.callout p:last-child { margin: 0; }

/* About / contact */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aside-card h3 { margin-bottom: 8px; }
.aside-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 26px; opacity: .9; }
footer a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal { max-width: 68ch; }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-2); }

/* About hero portrait */
.game-hero .art.portrait { background: transparent; box-shadow: none; border-radius: 0; justify-self: end; width: min(100%, 440px); }
.game-hero .art.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); box-shadow: 0 30px 60px -24px rgba(5,5,153,.35); }
.game-hero .art.portrait .cap { font-size: 14px; color: var(--ink-2); padding: 12px 4px 0; }
@media (max-width: 860px) { .game-hero .art.portrait { justify-self: start; } }

/* Portraits (about page) */
.portraits { display: grid; grid-template-columns: 1fr; gap: 14px; }
.portraits figure { margin: 0; border-radius: 14px; overflow: hidden; background: #111; }
.portraits img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portraits img { aspect-ratio: 3 / 4; }
.portraits figcaption { background: #fff; padding: 10px 14px; font-size: 14px; color: var(--ink-2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; }

/* Contact form */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form button { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; }

/* Animated logo (home hero): the bird lands and settles into the mark */
.logo-ani { width: 128px; height: 128px; border-radius: 26px; display: block; margin-bottom: 28px; background: var(--accent); object-fit: cover; box-shadow: 0 18px 40px -18px rgba(5,5,153,.5); }
@media (prefers-reduced-motion: reduce) { .logo-ani { display: none; } }

/* ---- Blue bands: white type, white cards, buttons inverted ---- */
section.alt { color: #fff; }
section.alt h1, section.alt h2, section.alt h3, section.alt .eyebrow, section.alt .section-head p, section.alt .prose p, section.alt .lede, section.alt .muted, section.alt .legal p, section.alt .legal li, section.alt .controls, section.alt .pillar p { color: #fff; }
section.alt .section-head p, section.alt .prose p, section.alt .legal p, section.alt .legal li { color: rgba(255,255,255,.88); }
section.alt p { color: rgba(255,255,255,.88); }
section.alt a { color: #fff; }
section.alt .card, section.alt .aside-card, section.alt .facts li, section.alt .contact-form, section.alt .gallery figure, section.alt .callout { color: var(--ink); border-color: transparent; }
section.alt .card h3, section.alt .aside-card h3, section.alt .card p, section.alt .aside-card ul, section.alt .gallery figcaption, section.alt .facts .v { color: var(--ink); }
section.alt .card a, section.alt .aside-card a, section.alt .callout a, section.alt .contact-form a { color: var(--accent); }
section.alt .btn-primary { background: #fff; color: var(--accent); }
section.alt .btn-primary:hover { background: #eef0ff; }
section.alt .btn-dark { background: #fff; color: var(--accent); }
section.alt .btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
section.alt .btn-ghost:hover { background: rgba(255,255,255,.12); }
section.alt .aside-card .btn-ghost, section.alt .aside-card .btn-dark { border-color: var(--line); color: var(--accent); background: transparent; }
section.alt .aside-card .btn-dark { background: var(--accent); color: #fff; }
section.alt .controls kbd { background: #fff; color: var(--accent); border-color: rgba(255,255,255,.5); }
section.alt .contact-form label { color: var(--ink-2); }
section.alt .contact-form input, section.alt .contact-form select, section.alt .contact-form textarea { background: #fff; border-color: var(--line); }
section.alt .contact-form input:focus, section.alt .contact-form select:focus, section.alt .contact-form textarea:focus { outline-color: var(--accent); }
section.alt .contact-form .btn-primary { background: var(--accent); color: #fff; }
section.alt .card .thumb { background: var(--accent); }
section.alt .card:hover { box-shadow: 0 24px 40px -20px rgba(0,0,40,.6); }
section.alt .tag { background: rgba(5,5,153,.08); color: var(--ink); }
section.alt .tag.live { background: var(--accent); color: #fff; }
section.alt .tag.soon { background: #fff; border-color: var(--line); }
