:root {
  --bg: #f3eee7;
  --paper: #fffaf4;
  --ink: #151310;
  --muted: #6f675f;
  --taupe: #82776d;
  --taupe-dark: #675f57;
  --cream: #fbf7f2;
  --accent: #f0c36a;
  --border: rgba(21, 19, 16, .13);
  --shadow: 0 24px 70px rgba(49, 42, 35, .12);
  --radius-lg: 32px;
  --radius-md: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--border);
  background: rgba(255,250,244,.78);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  position: sticky;
  top: 16px;
  z-index: 50;
  box-shadow: 0 12px 40px rgba(42,35,29,.06);
}

.brand, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a { padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; }
.nav a:hover { background: rgba(21,19,16,.06); }
.nav .nav-cta { background: var(--ink); color: var(--cream); padding-inline: 18px; }
.nav .nav-cta:hover { background: #302b26; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 26px; cursor: pointer; }

.section-pad { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 56px;
  padding-top: 82px;
  padding-bottom: 88px;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .17em;
  font-weight: 800;
  color: var(--taupe-dark);
}
.hero h1, h2, h3 { font-family: "Fredoka", sans-serif; }
.hero h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(60px, 7.5vw, 104px);
  line-height: .9;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--taupe); }
.hero-text {
  max-width: 610px;
  margin: 30px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--cream); box-shadow: 0 10px 26px rgba(21,19,16,.16); }
.button-primary:hover { background: #302b26; }
.button-ghost { border: 1px solid var(--border); background: rgba(255,255,255,.38); }
.micro-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.micro-badges span { border: 1px solid var(--border); background: rgba(255,255,255,.35); color: var(--muted); border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 700; }

.hero-art { position: relative; min-height: 540px; display: grid; place-items: center; }
.logo-card {
  position: relative;
  z-index: 2;
  width: min(510px, 90%);
  aspect-ratio: 1 / 1;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  border: 1px solid rgba(255,255,255,.38);
  background: #82776d;
}
.logo-card img { width: 100%; height: 100%; object-fit: cover; }
.blob { position: absolute; border-radius: 999px; filter: blur(1px); }
.blob-one { width: 340px; height: 340px; background: #d7c0a7; right: -70px; top: 40px; }
.blob-two { width: 220px; height: 220px; background: #ebd7a7; left: -10px; bottom: 30px; }
.float-note {
  position: absolute;
  z-index: 3;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(43,36,30,.1);
}
.note-one { right: 8px; top: 74px; transform: rotate(7deg); }
.note-two { left: 12px; bottom: 74px; transform: rotate(-7deg); }

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--ink);
  color: var(--cream);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticker-track {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  animation: ticker 30s linear infinite;
}

.ticker span {
  display: block;
  line-height: 1;
}
.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  padding-top: 120px;
  padding-bottom: 110px;
}
.about h2, .games h2, .contact h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.04em;
}
.about-copy { max-width: 620px; }
.about-copy p { margin: 0 0 18px; color: var(--muted); font-size: 18px; line-height: 1.75; }

.games { padding-bottom: 120px; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-note { max-width: 390px; color: var(--muted); line-height: 1.6; margin: 0; }
.game-grid { display: grid; grid-template-columns: 1.25fr 1fr .72fr; gap: 18px; }
.game-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 50px rgba(53,44,36,.06); }
.game-cover { min-height: 310px; position: relative; display: grid; place-items: center; overflow: hidden; }
.cover-one { background: linear-gradient(145deg, #8c8176, #b9a996); }
.cover-two { background: linear-gradient(145deg, #d9c88e, #8e846f); }
.status { position: absolute; top: 18px; left: 18px; background: rgba(255,250,244,.9); border: 1px solid rgba(21,19,16,.11); border-radius: 999px; padding: 8px 11px; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.cover-symbol { font-family: "Fredoka", sans-serif; font-size: 110px; opacity: .82; text-shadow: 0 8px 30px rgba(0,0,0,.12); }
.game-info { padding: 24px 24px 26px; }
.game-kicker { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--taupe-dark); }
.game-info h3 { margin: 0 0 8px; font-size: 32px; }
.game-info p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.game-info a { font-weight: 800; }
.teaser-card { min-height: 100%; display: grid; place-items: center; background: var(--ink); color: var(--cream); }
.teaser-inner { text-align: center; padding: 34px; }
.teaser-inner > span { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255,255,255,.16); font-family: "Fredoka", sans-serif; font-size: 36px; }
.teaser-inner h3 { font-size: 32px; margin: 20px 0 8px; }
.teaser-inner p { color: rgba(255,255,255,.65); line-height: 1.6; margin: 0; }

.quote-section { padding-top: 40px; padding-bottom: 120px; text-align: center; max-width: 850px; }
.quote-mark { font-family: Georgia, serif; font-size: 100px; line-height: .6; color: var(--taupe); }
.quote-section > p { margin: 18px auto 14px; font-family: "Fredoka", sans-serif; font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -.04em; }
.quote-section > span { color: var(--muted); font-size: 14px; }

.contact { padding-bottom: 80px; }
.contact-card {
  min-height: 350px;
  background: var(--taupe);
  color: var(--cream);
  border-radius: 40px;
  padding: 54px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.contact-card::after { content: "STIFF"; position: absolute; right: -18px; top: -24px; font-family: "Fredoka", sans-serif; font-size: 150px; font-weight: 700; color: rgba(255,255,255,.055); transform: rotate(8deg); }
.contact .eyebrow { color: rgba(255,255,255,.64); }
.contact-card p { color: rgba(255,255,255,.75); }
.contact-actions { min-width: 320px; position: relative; z-index: 2; }
.contact-actions .button { width: 100%; background: var(--cream); color: var(--ink); }
.socials { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.socials a { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 9px 12px; font-size: 13px; font-weight: 700; }
.socials a:hover { background: rgba(255,255,255,.08); }

.footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 38px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.footer-logo img { width: 40px; height: 40px; border-radius: 10px; }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; padding-top: 66px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .micro-badges { justify-content: center; }
  .hero-art { min-height: 510px; }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .teaser-card { min-height: 340px; grid-column: 1 / -1; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .contact-actions { min-width: 0; width: 100%; }
  .socials { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .site-header { width: min(100% - 24px, 1180px); top: 10px; margin-top: 10px; }
  .brand span { display: none; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--paper);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(41,34,28,.12);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .section-pad { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; gap: 20px; padding-top: 54px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-text { font-size: 16px; }
  .hero-art { min-height: 390px; }
  .logo-card { border-radius: 30px; width: min(390px, 94%); }
  .blob-one { width: 240px; height: 240px; right: -55px; }
  .blob-two { width: 160px; height: 160px; }
  .note-one { right: 0; top: 40px; }
  .note-two { left: 0; bottom: 42px; }
  .about { padding-top: 84px; padding-bottom: 78px; }
  .about-copy p { font-size: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .game-grid { grid-template-columns: 1fr; }
  .teaser-card { grid-column: auto; }
  .quote-section { padding-bottom: 85px; }
  .contact-card { border-radius: 28px; padding: 32px 24px; min-height: 320px; }
  .contact-card::after { font-size: 90px; }
  .footer { width: min(100% - 28px, 1180px); flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .button { transition: none; }
}
