/* Braindance Studios: studio pages (start page, imprint, 404).
   Light and quiet, like a product page: white and light grey, one type family,
   real game screenshots on flat colour fields. No gradients, no glow. */

@font-face {
  font-family: "Inter Var";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Var";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #fff;
  --alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Var", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -.011em;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 64px); }

/* Text links with a chevron, as on product pages */
.more { color: var(--link); font-size: 17px; white-space: nowrap; }
.more::after { content: " \203A"; }
.more:hover { text-decoration: underline; }
.on-dark .more { color: #2997ff; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.brand { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 32px; font-size: 13px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- Masthead ---------- */
.masthead { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 88px); }
.masthead .wrap { container-type: inline-size; }
.wordmark {
  margin: 0; font-size: 21cqw; line-height: .84; font-weight: 700;
  letter-spacing: -.065em; margin-left: -.04em; white-space: nowrap;
}
.intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(28px, 4vw, 48px); font-size: 17px; line-height: 1.45; }
.intro p { margin: 0; }
.intro .muted { color: var(--muted); }

/* ---------- Featured game ---------- */
.featured { background: #f2e8d5; text-align: center; padding-top: clamp(64px, 9vw, 104px); overflow: hidden; }
.featured .icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22.5%; }
.featured h2 { margin: 0; font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.featured .tagline { margin: 10px 0 0; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; color: #5c4b2e; }
.featured .links { margin-top: 20px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 2.4vw, 28px); margin-top: clamp(44px, 6vw, 72px); margin-bottom: -12%; }
.phone { width: clamp(150px, 21vw, 270px); border-radius: clamp(20px, 2.8vw, 36px); border: clamp(5px, .7vw, 9px) solid #1d1d1f; background: #1d1d1f; overflow: hidden; box-shadow: 0 30px 60px rgba(40, 30, 10, .18); }
.phone img { width: 100%; height: auto; aspect-ratio: 600 / 1300; object-fit: cover; }
.phone.mid { width: clamp(170px, 24vw, 310px); transform: translateY(-6%); }

/* ---------- Game grid ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; line-height: 1.08; font-weight: 700; }
.section-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
.card .media { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; gap: 4%; padding-top: 9%; }
.card .media .shot { width: 34%; border-radius: 18px 18px 0 0; border: 6px solid #1d1d1f; border-bottom: 0; overflow: hidden; background: #1d1d1f; }
.card .media .shot img { width: 100%; height: auto; aspect-ratio: 600 / 1100; object-fit: cover; object-position: top; }
.card .media .shot.low { margin-bottom: -6%; }
.card .info { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 20px 4px 0; }
.card h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.card .where { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card .desc { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); max-width: 52ch; }
.card .links { grid-column: 1 / -1; display: flex; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.card a.media { transition: opacity .2s ease; }
.card a.media:hover { opacity: .92; }

.media.sling { background: #3f8fd2; }
.media.fluffy { background: #b9cf62; }
.media.word { align-items: center; padding: 0 8%; justify-content: flex-start; }
.media.word span { font-size: clamp(44px, 6.4vw, 84px); line-height: .9; font-weight: 700; letter-spacing: -.055em; }
.media.karaoke { background: #ffd23f; color: #1d1d1f; }
.media.klipsy { background: #1d1d1f; color: #f5f5f7; }

/* ---------- Studio ---------- */
.studio { background: var(--alt); }
.statement { margin: 0; max-width: 30ch; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.16; letter-spacing: -.03em; font-weight: 600; }
.statement span { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.05; }
.facts span { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact h2 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; font-weight: 700; }
.contact p { margin: 0 0 20px; color: var(--muted); }
.contact .mail { font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.03em; color: var(--link); }
.contact .mail:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--alt); color: var(--muted); font-size: 12px; line-height: 1.6; padding: 20px 0 32px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer nav a { padding: 0 10px; border-left: 1px solid var(--line); }
.footer nav a:first-child { border-left: 0; padding-left: 0; }
.footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Text pages (imprint, 404) ---------- */
.page { padding: clamp(56px, 8vw, 96px) 0 96px; }
.page h1 { margin: 0 0 12px; font-size: clamp(40px, 5.6vw, 56px); letter-spacing: -.035em; line-height: 1.05; }
.page .lang { margin: 0 0 56px; color: var(--muted); }
.page .lang a { color: var(--link); }
.page h2 { margin: 40px 0 8px; font-size: 19px; letter-spacing: -.015em; font-weight: 600; }
.page p { margin: 0 0 10px; color: var(--muted); }
.page p a { color: var(--link); }
.page address { font-style: normal; font-size: 19px; line-height: 1.5; }
.page section + section { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.notfound { min-height: calc(100vh - 48px); display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(56px, 10vw, 120px); letter-spacing: -.06em; margin: 0; line-height: .95; }
.notfound p { margin: 16px 0 24px; font-size: 21px; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .wrap, .wrap.narrow { width: calc(100% - 40px); }
  .intro { grid-template-columns: 1fr; gap: 12px; }
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .section-head { display: block; }
  .section-head p { margin-top: 6px; }
  .nav-links { gap: 20px; }
  .phone:not(.mid) { display: none; }
  .phone.mid { width: 62vw; transform: none; }
  .phones { margin-bottom: -40%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
