/* Rock and Paper Studios - shared base and the studio's own look (the rock-and-paper logo: charcoal, cream paper,
   studio yellow, chunky white letters). Each game page adds its own theme on top. */
:root {
  --bg: #13110e;
  --bg2: #1b1813;
  --panel: #221e18;
  --ink: #f4efe4;
  --muted: #b7ad9c;
  --dim: #8a8172;
  --line: rgba(244, 239, 228, .10);
  --line2: rgba(244, 239, 228, .18);
  --yellow: #f2b81c;
  --yellow2: #ffd25a;
  --paper: #efe7d5;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand span { font-family: var(--display); font-size: 1rem; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-family: var(--body); font-weight: 600; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); }
.links { display: flex; gap: 4px; list-style: none; }
.links a {
  display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s;
}
.links a:hover { color: var(--ink); background: var(--line); }
@media (max-width: 640px) {
  .links .hide-sm { display: none; }
  .brand span { font-size: .9rem; }
}

/* ---------- buttons, chips, eyebrows ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: #17130b; box-shadow: 0 14px 30px -14px rgba(242, 184, 28, .8); }
.btn-yellow:hover { background: var(--yellow2); }
.btn-ghost { border-color: var(--line2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.chip {
  display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: .38em .85em; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink); background: rgba(0, 0, 0, .25);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(242, 184, 28, .18); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em; font-weight: 700; font-size: .76rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--yellow);
}
/* no leading dash on the studio's labels (user, 2026-10-11); Aria's page keeps her deck's */

/* ---------- reveal on scroll ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }

/* ---------- studio: hero ---------- */
.s-hero { position: relative; padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 7vw, 90px); overflow: hidden; }
.s-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(242, 184, 28, .16), transparent 70%); pointer-events: none;
}
.s-hero .wrap { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.s-hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1;
  letter-spacing: -.015em; margin: .38em 0 .4em; text-wrap: balance;
}
.s-hero h1 em { font-style: normal; color: var(--yellow); }
.s-hero p.lead { font-size: clamp(1.04rem, 2vw, 1.22rem); color: var(--muted); max-width: 34em; }
.s-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.logo-plate { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #1a1611; }
.logo-plate img { width: 100%; height: auto; aspect-ratio: 1600/667; object-fit: cover; }
.logo-plate::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px 20px rgba(19, 17, 14, .55); pointer-events: none; }
@media (max-width: 880px) { .s-hero .wrap { grid-template-columns: 1fr; } .logo-plate { order: -1; } }

/* ---------- studio: flagship band ---------- */
.flag { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.flag > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.flag::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(19, 17, 14, .9) 0%, rgba(19, 17, 14, 0) 22%),
    linear-gradient(0deg, rgba(10, 9, 7, .96) 4%, rgba(10, 9, 7, .55) 42%, rgba(10, 9, 7, 0) 70%),
    linear-gradient(90deg, rgba(10, 9, 7, .7) 0%, rgba(10, 9, 7, 0) 60%);
}
.flag .wrap { padding-top: 120px; padding-bottom: clamp(36px, 6vw, 72px); }
.danfo-title {
  font-family: "Anton", "Archivo Black", Impact, sans-serif; font-weight: 400; text-transform: uppercase; line-height: .88;
  font-size: clamp(3.4rem, 11vw, 8.6rem); color: #f7c600; letter-spacing: .005em;
  -webkit-text-stroke: clamp(2px, .35vw, 4px) #111; paint-order: stroke fill;
  text-shadow: 0 .06em 0 #111, 0 .1em 30px rgba(0, 0, 0, .55);
  margin: .2em 0 .18em;
}
.danfo-title span { display: block; font-size: .42em; color: #fff; letter-spacing: .14em; -webkit-text-stroke-width: clamp(1px, .2vw, 2px); }
.flag p.lead { max-width: 36em; font-size: clamp(1.04rem, 2vw, 1.25rem); color: #efe7d8; }
.flag .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.stripes { display: flex; flex-direction: column; gap: 5px; width: 132px; margin-top: 24px; padding: 7px 0; background: #f7c600; border-radius: 4px; box-shadow: 0 10px 24px -12px rgba(247, 198, 0, .7); }
.stripes i { display: block; height: 5px; background: #111; }
.flag .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(28px, 4vw, 44px); max-width: 760px; }
.flag .thumbs a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); aspect-ratio: 16/9; }
.flag .thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.flag .thumbs a:hover img { transform: scale(1.06); }
@media (max-width: 560px) { .flag .thumbs { grid-template-columns: 1fr 1fr; } .flag .thumbs a:nth-child(3) { display: none; } }

/* ---------- studio: section heads ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section h2.head {
  font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.02;
  letter-spacing: -.01em; margin: .35em 0 .45em; text-wrap: balance;
}
.section p.sub { color: var(--muted); max-width: 40em; font-size: 1.08rem; }

/* ---------- studio: game cards (each in its own game's clothes) ---------- */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 860px) { .games { grid-template-columns: 1fr; } }
.gcard {
  position: relative; display: grid; grid-template-columns: 1fr 42%; min-height: 440px; border-radius: 26px; overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.gcard:hover { transform: translateY(-6px); }
.gcard .txt { position: relative; z-index: 1; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.gcard .txt p { font-size: .98rem; line-height: 1.55; }
.gcard .more { margin-top: auto; font-weight: 700; display: inline-flex; gap: .5em; align-items: center; }
.gcard .pic { position: relative; }
.gcard .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gcard:hover .pic img { transform: scale(1.05); }
@media (max-width: 480px) {
  .gcard { grid-template-columns: 1fr; min-height: 0; }
  .gcard .pic { height: 300px; order: -1; }
}
/* Volt X: the lab */
.gcard.volt { background: radial-gradient(120% 100% at 0% 0%, #10306a 0%, #071229 55%, #040a18 100%); color: #e6f4ff; border: 1px solid rgba(56, 214, 255, .28); }
.gcard.volt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(56, 214, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 214, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(90deg, #000 30%, transparent 75%);
}
.gcard.volt .tag { font-family: "Orbitron", sans-serif; font-weight: 600; font-size: .7rem; letter-spacing: .3em; color: #38d6ff; text-transform: uppercase; }
.gcard.volt h3 { white-space: nowrap; font-family: "Orbitron", sans-serif; font-weight: 900; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: .04em; text-shadow: 0 0 24px rgba(56, 214, 255, .55); }
.gcard.volt h3 b { color: #38d6ff; }
.gcard.volt p { color: #a9c3dc; }
.gcard.volt .more { color: #38d6ff; font-family: "Orbitron", sans-serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.gcard.volt .pic img { object-position: 50% 72%; }
.gcard.aria .pic img { object-position: 50% 55%; }
.gcard.volt .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #071229 0%, transparent 35%); }
@media (max-width: 480px) { .gcard.volt .pic::after { background: linear-gradient(0deg, #071229 0%, transparent 40%); } }
/* Aria: the storybook (her pitch deck) */
.gcard.aria { background: radial-gradient(120% 120% at 85% 0%, #14202f, #0a0f17); color: #eef4f9; border: 1px solid rgba(143, 227, 107, .22); }
.gcard.aria .tag { font-family: "Inter", sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .3em; color: #8fe36b; text-transform: uppercase; }
.gcard.aria h3 { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(3rem, 6vw, 4.2rem); line-height: .9; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff, #cfe8ff 70%, #a9d0f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gcard.aria .badge {
  align-self: flex-start; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  color: #0a0f17; background: linear-gradient(180deg, #b9f294, #8fe36b); padding: .12em .6em; border-radius: .5em; transform: rotate(-1.5deg);
  box-shadow: 0 10px 24px -10px rgba(143, 227, 107, .6); margin-top: -6px;
}
.gcard.aria p { color: #94a6b8; }
.gcard.aria .more { color: #8fe36b; }
.gcard.aria .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d1520 0%, transparent 35%); }
@media (max-width: 480px) { .gcard.aria .pic::after { background: linear-gradient(0deg, #0d1520 0%, transparent 40%); } }
.gchip { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .35em .8em; border-radius: 999px; }
.gcard.volt .gchip { color: #38d6ff; border: 1px solid rgba(56, 214, 255, .4); background: rgba(56, 214, 255, .08); }
.gcard.aria .gchip { color: #f5c542; border: 1px solid rgba(245, 197, 66, .3); background: rgba(245, 197, 66, .1); }

/* ---------- studio: about ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about p { color: var(--muted); font-size: 1.06rem; }
.about p + p { margin-top: 1em; }
.facts { display: grid; gap: 12px; }
.fact { display: flex; gap: 16px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.fact b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--yellow); min-width: 2.4ch; line-height: 1; }
.fact span { color: var(--muted); font-size: .98rem; line-height: 1.4; }
.fact span strong { color: var(--ink); display: block; font-size: 1.02rem; }

/* ---------- contact ---------- */
.contact-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, #2a2316 0%, #1b1813 55%); border: 1px solid rgba(242, 184, 28, .28);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.contact-card::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; opacity: .12;
  background: url(/img/studio/badge-300.png) center/contain no-repeat; transform: rotate(-12deg); pointer-events: none;
}
.contact-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.02; margin: .3em 0 .35em; }
.contact-card p { color: var(--muted); max-width: 34em; }
.contact-card .mail { font-weight: 700; color: var(--yellow); word-break: break-all; }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- footer (all pages) ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--dim); font-size: .9rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h4 { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > div:first-child { grid-column: 1 / -1; } }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(5, 5, 5, .92); padding: 56px 16px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lb button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
}
.lb button:hover { background: rgba(255, 255, 255, .18); }
.lb .x { top: 12px; right: 12px; }
.lb .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .92rem; padding: 0 70px; }
[data-lightbox] { cursor: zoom-in; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .btn:hover, .gcard:hover, .gcard:hover .pic img, .flag .thumbs a:hover img { transform: none; }
}

/* the duo logo, drawn inline (vector: sharp everywhere, ~13 KB) */
.logo-hero { position: relative; }
.logo-hero svg.duo { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 880px) { .logo-hero { order: -1; width: min(520px, 100%); margin: 0 auto; } }
