:root {
  --ink: #241714;
  --ink-soft: #5b473f;
  --navy: #061d3d;
  --accent: #c97631;
  --accent-strong: #df6a45;
  --gold: #bd8a2e;
  --paper: #fbf7ee;
  --paper-alt: #f4ecdd;
  --surface: #fffdf8;
  --line: #d7cdbc;
  --muted: #75675d;
  --sage: #dfe8df;
  --bluewash: #dce8ea;
  --shadow: 0 26px 70px rgba(47, 31, 20, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Aptos, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 670px;
  margin-bottom: 22px;
  font-size: clamp(4.3rem, 11vw, 9.2rem);
  line-height: 0.78;
}

h1 span {
  display: block;
}

h1 span + span {
  font-size: 0.49em;
  line-height: 0.95;
}

h2 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7.2vw, 7.1rem);
  line-height: 0.86;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(251, 247, 238, 0.86);
  border-bottom: 1px solid rgba(215, 205, 188, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 50px;
  object-fit: contain;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button,
.product-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.button-primary {
  padding: 0 22px;
  color: #fffdf8;
  background: var(--ink);
}

.button-primary:hover {
  color: #fffdf8;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.button-secondary {
  padding: 0 22px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.58);
}

.button-secondary:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr);
  gap: clamp(26px, 4vw, 74px);
  align-items: center;
  min-height: min(790px, calc(100dvh - 74px));
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5.5vw, 76px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 247, 238, 0.98) 0%, rgba(251, 247, 238, 0.92) 38%, rgba(251, 247, 238, 0.35) 66%, rgba(251, 247, 238, 0) 100%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-kicker,
.section-kicker,
.product-label,
.studio-ledger span {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy p:not(.hero-kicker) {
  max-width: 430px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
  z-index: 1;
  margin-right: clamp(-90px, -4vw, -34px);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  min-height: 520px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.studio-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 52px) clamp(18px, 5.5vw, 76px);
  background: transparent;
}

.studio-strip div {
  display: grid;
  gap: 5px;
  padding: 12px clamp(18px, 3vw, 34px);
  border-left: 1px solid var(--line);
}

.studio-strip div:last-child {
  border-right: 1px solid var(--line);
}

.studio-strip strong {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
}

.studio-strip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(76px, 10vw, 138px) clamp(18px, 5.5vw, 76px);
}

.section-copy,
.work-heading {
  max-width: 960px;
}

.section-copy p,
.work-heading p,
.studio-ledger p,
.featured-copy p,
.game-card p {
  color: var(--muted);
}

.section-copy p,
.work-heading p {
  max-width: 650px;
  font-size: 1.08rem;
  font-weight: 650;
}

.products-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.7fr);
  gap: clamp(34px, 7vw, 94px);
  align-items: end;
  background: var(--paper);
}

.studio-ledger {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.studio-ledger article {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.studio-ledger span {
  display: block;
  margin-bottom: 10px;
}

.studio-ledger h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 500;
}

.studio-ledger p {
  max-width: 500px;
  margin-bottom: 0;
}

.work-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 253, 248, 0.82), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(255, 253, 248, 0.62), transparent 32%),
    var(--paper);
  border-block: 1px solid rgba(215, 205, 188, 0.7);
}

.work-layout {
  max-width: 1344px;
  margin: 0 auto;
}

.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 8vw, 118px);
  align-items: end;
  max-width: none;
  margin-bottom: clamp(30px, 4vw, 42px);
}

.section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.work-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(3.35rem, 6.2vw, 6.6rem);
  line-height: 0.9;
}

.work-heading p {
  align-self: center;
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 520;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(174px, 0.58fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: center;
  min-height: clamp(212px, 17vw, 248px);
  padding: clamp(14px, 1.7vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.58);
  box-shadow: 0 10px 32px rgba(47, 31, 20, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 118, 49, 0.45);
  box-shadow: 0 18px 42px rgba(47, 31, 20, 0.08);
}

.game-card img {
  width: 100%;
  max-width: 210px;
  height: clamp(152px, 13vw, 198px);
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 16px 18px rgba(47, 31, 20, 0.12));
}

.game-card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: clamp(150px, 12vw, 186px);
}

.game-card .product-label {
  display: none;
}

.game-card h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  font-weight: 500;
  line-height: 0.96;
}

.game-card p {
  max-width: 210px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  font-weight: 520;
  line-height: 1.34;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.product-links a {
  min-height: 30px;
  padding: 0 11px;
  color: var(--ink);
  background: transparent;
  border-color: rgba(36, 23, 20, 0.24);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.product-links a:hover {
  color: #fffdf8;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(18px, 5.5vw, 76px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-brand img {
  width: min(240px, 56vw);
  height: auto;
}

.footer-email {
  justify-self: end;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-break: break-word;
}

.site-footer p {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-media {
    animation: hero-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 140ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 200ms;
  }

  .hero-media {
    animation-delay: 120ms;
  }

  @supports (animation-timeline: view()) {
    .studio-strip div,
    .section-copy,
    .studio-ledger article,
    .work-heading,
    .game-card,
    .footer-email {
      animation: reveal-up both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 20px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .game-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero,
  .products-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
    background: var(--paper);
  }

  .hero-copy {
    max-width: none;
  }

  .hero-media {
    order: -1;
    margin-right: 0;
  }

  .hero-media img {
    min-height: 0;
  }

  .work-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .studio-strip {
    grid-template-columns: 1fr;
  }

  .studio-strip div,
  .studio-strip div:last-child {
    border-right: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .studio-strip div:last-child {
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    justify-items: start;
  }

  .footer-email,
  .site-footer p {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand img {
    height: 42px;
  }

  .hero,
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: clamp(4rem, 19vw, 5.3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
    object-position: 56% center;
  }

  .game-gallery {
    grid-template-columns: 1fr;
  }

  .game-card {
    grid-template-columns: minmax(116px, 0.42fr) minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
  }

  .game-card img {
    max-width: 132px;
    height: 112px;
  }

  .product-links a {
    min-height: 32px;
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
