:root {
  --ink: #0b0906;
  --ink-2: #14100a;
  --gold: #e8b347;
  --ember: #f08a24;
  --paper: #f4e8cc;
  --dim: #a3967c;
  --rule: rgba(232, 179, 71, 0.2);
  --display: "Big Shoulders Display", Impact, sans-serif;
  --body: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.6 var(--body);
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

.kicker {
  font: 500 0.74rem var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

h2 {
  font: 900 clamp(2.6rem, 6vw, 5rem) / 0.92 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 14px;
}

.lede { color: var(--dim); max-width: 520px; margin-top: 18px; }

/* reveal on scroll */
.in { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.in.shown { opacity: 1; transform: none; }

/* ---------- header ---------- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(11, 9, 6, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s, border-color 0.4s;
}
.top.solid { padding-block: 12px; border-color: var(--rule); }

.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.4rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.mark img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); }

.menu { display: flex; gap: 4px; }
.menu a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--paper);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.menu a:hover, .menu a.active { opacity: 1; }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); transform-origin: left; }
.menu .menu-cta { background: var(--gold); color: var(--ink); opacity: 1; border-radius: 999px; font-weight: 600; margin-left: 8px; }
.menu .menu-cta::after { display: none; }
.menu .menu-cta:hover { background: var(--paper); }

/* ---------- hero: pinned, full banner zooms out into its frame ---------- */

.hero { position: relative; height: 230vh; }

.hero-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.hero-banner {
  position: absolute;
  left: 0;
  top: 0;
  aspect-ratio: 1080 / 429;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform;
  box-shadow: 0 40px 120px -40px rgba(240, 138, 36, calc(var(--p, 0) * 0.45));
  border: 1px solid rgba(232, 179, 71, calc(var(--p, 0) * 0.2));
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }

.hero-row {
  position: absolute;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.hero-name {
  font: 900 clamp(3.5rem, min(16vw, 20vh), 13rem) / 0.8 var(--display);
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
}
.hero-name span {
  display: inline-block;
  opacity: var(--o, 0);
  transform: translateY(var(--y, 60%));
  transition: color 0.3s;
}
.hero-name span:hover { color: var(--gold); }

.hero-meta { max-width: 400px; padding-bottom: 10px; opacity: var(--mo, 0); transform: translateY(calc((1 - var(--mo, 0)) * 30px)); }
.hero-tag { color: #d9cba9; margin-top: 8px; }

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-cue span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- totals ---------- */

.totals { padding: 100px 0 110px; text-align: center; border-block: 1px solid var(--rule); }

.totals-grid {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(32px, 7vw, 110px);
  margin-top: 30px;
}
.total b {
  display: block;
  font: 900 clamp(3.6rem, 9vw, 7.5rem) / 1 var(--display);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px rgba(240, 138, 36, 0.35);
}
.total span { font-size: 0.9rem; color: var(--dim); }

/* ---------- about ---------- */

.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; margin-top: 30px; }

.about-photo { position: relative; }
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.6s, transform 0.6s var(--ease);
}
.about-photo:hover img { filter: none; transform: scale(1.02) rotate(-1deg); }
.about-photo::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border-radius: 6px;
  background: radial-gradient(var(--gold) 1.2px, transparent 1.4px) 0 0 / 9px 9px;
  opacity: 0.4;
  z-index: -1;
}
.about-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 10px;
  font: 500 0.72rem var(--mono);
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.about-copy p {
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.5;
  color: #cbbd9c;
}
.about-copy p + p { margin-top: 22px; }
.about-copy .word { opacity: 0.18; transition: opacity 0.3s; }
.about-copy .word.lit { opacity: 1; }
.about-copy b { color: var(--gold); font-weight: 600; }

/* ---------- services ---------- */

.services { padding: 120px 0; }
.section-head { margin-bottom: 50px; }

.service-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 20px;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
  transition: color 0.35s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service:hover, .service:hover em, .service:hover p { color: var(--ink); }
.service em { font: 500 0.78rem var(--mono); font-style: normal; color: var(--gold); transition: color 0.35s; }
.service h3 { font: 700 clamp(1.5rem, 2.6vw, 2.2rem) / 1 var(--display); text-transform: uppercase; }
.service p { color: var(--dim); font-size: 0.95rem; transition: color 0.35s; }

/* ---------- games ---------- */

.work { padding: 120px 0; }
.game-list { display: flex; flex-direction: column; gap: 22px; }

.game {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.15fr;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--ink-2);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s;
}
.game:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 30px 70px -35px rgba(240, 138, 36, 0.45); }

.game-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.game-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.game:hover .game-shot img { transform: scale(1.05); }
.game-shot .game-icon {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid rgba(244, 232, 204, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.game-info { padding: 28px 30px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.game-status {
  padding: 4px 10px;
  border-radius: 999px;
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--dim);
}
.game-status.current { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.game h3 { font: 900 clamp(2rem, 3.6vw, 3rem) / 0.95 var(--display); text-transform: uppercase; margin-top: 10px; }
.game-sub { font: 500 0.76rem var(--mono); color: var(--dim); }
.game-desc { color: #d9cba9; font-size: 0.92rem; margin-top: 6px; }
.game-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); }
.game-stats b { display: block; font: 700 1.7rem / 1 var(--display); color: var(--gold); }
.game-stats span { font-size: 0.74rem; color: var(--dim); }
.game-go { font: 600 0.85rem var(--body); color: var(--gold); display: flex; align-items: center; gap: 6px; }
.game-go i { font-style: normal; transition: transform 0.35s var(--ease); }
.game:hover .game-go i { transform: translate(3px, -3px); }

/* ---------- reviews ---------- */

.reviews { padding: 140px 0 100px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.review-empty {
  min-height: 200px;
  border: 1px dashed var(--rule);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 500 0.78rem var(--mono);
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: radial-gradient(rgba(232, 179, 71, 0.12) 1px, transparent 1.2px) 0 0 / 12px 12px;
}

.review {
  padding: 30px;
  border-radius: 12px;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.review:hover { transform: translateY(-6px); border-color: var(--gold); }
.review blockquote { font-size: 1.12rem; line-height: 1.55; }
.review blockquote::before { content: "“"; display: block; font: 900 4rem / 0.6 var(--display); color: var(--gold); margin-bottom: 8px; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.review figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review figcaption b { display: block; }
.review figcaption small { color: var(--dim); }

/* ---------- contact ---------- */

.contact { padding: 120px 0 140px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.contact-title { font-size: clamp(3rem, 7.5vw, 6.4rem); }
.contact .dc-card { justify-self: end; }
.contact .dc-card.shown:hover { transform: translateY(-8px) rotate(-1deg); }

.foot {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 40px;
  border-top: 1px solid var(--rule);
  font: 500 0.75rem var(--mono);
  color: var(--dim);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .service { grid-template-columns: 50px 1fr; }
  .service p { grid-column: 2; }
  .about-grid, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .contact .dc-card { justify-self: start; }
}

@media (max-width: 640px) {
  .menu a:not(.menu-cta) { display: none; }
  .hero-row { flex-direction: column; align-items: start; gap: 14px; }
  .game-info { padding: 22px; }
  .game-stats { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; }
}
