/* Kimbu Studio site. One brand colour (berry) on plain light backgrounds; no boxes or cards.
   Bricolage Grotesque throughout. Motion is gentle and turns off with reduced motion. */
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/Bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --berry: #8a2878;        /* the one brand colour */
  --berry-dark: #6c1d5e;   /* hover/pressed */
  --tint: #f7f1f5;         /* alternate section background, a trace of berry */
  --white: #ffffff;
  --ink: #23121f;
  --muted: #6b5a67;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--berry); color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header: solid brand bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--berry); color: #fff; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.bar nav { display: flex; gap: 32px; }
.bar nav a { text-decoration: none; font-weight: 600; font-size: 16px; opacity: 0.9; position: relative; }
.bar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.bar nav a:hover { opacity: 1; }
.bar nav a:hover::after { transform: scaleX(1); }

/* ---------- Shared ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.tinted { background: var(--tint); }
.center { text-align: center; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.title { color: var(--berry); font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; margin-bottom: 18px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 40em; margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.25s, transform 0.35s var(--ease);
}
.btn:hover { background: var(--berry-dark); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.more { color: var(--berry); font-weight: 650; text-decoration: none; display: inline-flex; gap: 8px; }
.more span { transition: transform 0.35s var(--ease); }
.more:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; overflow: hidden; }
.hero h1 {
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 760;
  margin: 0 auto 22px;
  max-width: 11em;
}
.hero h1 span { color: var(--berry); }
.hero .lead { margin-bottom: 32px; }
.stage { position: relative; width: min(820px, 100%); aspect-ratio: 16 / 10; margin: clamp(40px, 6vw, 64px) auto 0; }
.stage .rings { position: absolute; left: 50%; top: 4%; width: 112%; translate: -50% 0; }
.rings g { transform-origin: 300px 300px; }
.rings .r1 { animation: twist 50s linear infinite; }
.rings .r2 { animation: twist 38s linear infinite reverse; }
.rings .r3 { animation: twist 62s linear infinite; }
.rings .r4 { animation: twist 30s linear infinite reverse; }
@keyframes twist { to { transform: rotate(360deg); } }

.phone {
  position: absolute;
  aspect-ratio: 9 / 19.5;
  border-radius: 13% / 6%;
  padding: 2.2%;
  background: #18111a;
  box-shadow: 0 30px 60px rgba(35, 18, 31, 0.22), 0 8px 18px rgba(35, 18, 31, 0.12);
}
.phone::before {
  content: "";
  position: absolute;
  top: 3.4%;
  left: 50%;
  width: 30%;
  height: 3.2%;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 11% / 5.1%; }
.stage .phone { width: 30%; bottom: -18%; }
.stage .phone.left { left: 17%; rotate: -6deg; }
.stage .phone.right { right: 17%; rotate: 6deg; bottom: -24%; }

/* ---------- About ---------- */
.about p { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; max-width: 36em; margin: 0 auto 18px; }
.about p:last-child { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); margin-bottom: 0; }
.about em { font-style: normal; color: var(--berry); font-weight: 650; }

/* ---------- Games ---------- */
.game { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.game h3 { color: var(--berry); font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 12px; }
.game .status { display: inline-block; font-size: 14px; font-weight: 650; color: var(--berry); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.game p { margin: 0 0 22px; max-width: 30em; }
.game ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; color: var(--muted); }
.game li { padding-left: 22px; position: relative; }
.game li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 8px; border-radius: 50%; background: var(--berry); }
.game li b { color: var(--ink); font-weight: 650; }
.game .stores { margin-top: 22px; font-size: 15px; color: var(--muted); }
.game .shot { position: relative; height: clamp(440px, 48vw, 600px); }
.game .shot .phone { width: clamp(200px, 21vw, 270px); left: 50%; top: 50%; translate: -50% -50%; }
.game .shot .phone.back { translate: -105% -46%; rotate: -7deg; scale: 0.9; }
.game .shot .phone.front { translate: -12% -50%; rotate: 4deg; }
.next { margin-top: clamp(56px, 8vw, 96px); text-align: center; color: var(--muted); }
.next b { color: var(--berry); }

/* ---------- Principles ---------- */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vw, 72px); text-align: left; }
.rule .num { font-size: clamp(56px, 6vw, 84px); line-height: 1; font-weight: 760; letter-spacing: -0.05em; color: var(--berry); }
.rule h3 { font-size: 20px; margin: 14px 0 8px; }
.rule p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* ---------- Contact ---------- */
.mail {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--berry);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size 0.6s var(--ease);
  padding-bottom: 4px;
}
.mail:hover { background-size: 100% 3px; }
.contact .lead { margin-top: 18px; }
.contact .lead a { color: var(--berry); font-weight: 650; }

/* ---------- Footer: solid brand colour ---------- */
.foot { background: var(--berry); color: #fff; text-align: center; padding: 56px 0 40px; }
.foot .brand img { height: 52px; margin: 0 auto; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 26px 0 18px; }
.foot nav a { text-decoration: none; font-weight: 600; opacity: 0.9; }
.foot nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot small { opacity: 0.75; font-size: 14px; }

/* ---------- Text pages ---------- */
.page h1 { color: var(--berry); font-size: clamp(40px, 6vw, 72px); line-height: 1; margin-bottom: 10px; }
.page .meta { color: var(--muted); margin: 0 0 32px; }
.page .doc { max-width: 760px; }
.page h2 { font-size: 24px; margin: 36px 0 8px; }
.page a { color: var(--berry); }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .game .shot { order: -1; height: 460px; }
  .rules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bar nav { gap: 18px; }
  .bar nav a.opt { display: none; }
  .stage { aspect-ratio: 4 / 5; }
  .stage .phone { width: 44%; bottom: -8%; }
  .stage .phone.left { left: 4%; }
  .stage .phone.right { right: 4%; bottom: -14%; }
  .rules { grid-template-columns: 1fr; }
  .game .shot { height: 400px; }
  .game .shot .phone { width: 180px; }
  .game .shot .phone.back { translate: -92% -46%; }
  .game .shot .phone.front { translate: -20% -50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
