@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101011;
  --paper: #f7f1e9;
  --muted: #c2bab3;
  --accent: #f6ae58;
  --line: #ffffff23;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.6 Inter, system-ui, sans-serif;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .93; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; width: 100%; height: auto; }
section, article { scroll-margin-top: 1.25rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.frame { width: min(100% - var(--gutter) * 2, 82rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: .75rem;
  left: var(--gutter);
  z-index: 5;
  padding: .55rem .9rem;
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: #111112; }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .64rem; flex: none; }
.brand-icon {
  width: 2.38rem;
  height: 2.38rem;
  background: currentColor;
  mask: url("assets/sumonux-logo.svg") center / contain no-repeat;
}
.wordmark > span { font: 800 1.45rem/.76 var(--display); letter-spacing: .075em; }
.wordmark small { display: block; margin-top: .26rem; color: var(--accent); font: 700 .53rem/1 Inter, sans-serif; letter-spacing: .27em; }
.header-inner nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.7rem); font-size: .88rem; font-weight: 600; }
.header-inner nav a { transition: color .2s; }
.header-inner nav a:is(:hover, :focus-visible) { color: var(--accent); }

.arrow {
  display: inline-block;
  width: .61em;
  height: .61em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  flex: none;
}
.arrow.diagonal { position: relative; transform: translate(-.05em, .06em); }
.arrow.diagonal::before {
  position: absolute;
  top: 0;
  right: 0;
  width: .72em;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
  content: "";
}
.arrow.down { transform: translateY(-.15em) rotate(135deg); }
.arrow.up { transform: translateY(.12em) rotate(-45deg); }

.hero {
  --pan-x: 0px;
  --pan-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #161312;
  border-bottom: 1px solid var(--line);
}
.hero-scene, .hero-shade, .hero-light, .world { position: absolute; inset: 0; pointer-events: none; }
.hero-scene { z-index: -1; overflow: hidden; }
.world { overflow: hidden; }
.world img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--pan-x), var(--pan-y), 0) scale(1.07);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
}
.world-copper {
  left: 33%;
  right: 21%;
  clip-path: polygon(16% 0, 100% 0, 77% 100%, 0 100%);
  background: #664326;
}
.world-copper img {
  object-position: 62% 66%;
  filter: saturate(.88) brightness(.91);
}
.world-silent {
  left: 69%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  background: #190c0d;
}
.world-silent img {
  object-position: 79% 39%;
  filter: saturate(.9) brightness(1.38);
  transform: translate3d(calc(var(--pan-x) * -.6), calc(var(--pan-y) * -.6), 0) scale(1.08);
}
.hero:has(.copper-link:is(:hover, :focus-visible)) .world-copper img { filter: saturate(1.12) brightness(1.08); }
.hero:has(.silent-link:is(:hover, :focus-visible)) .world-silent img { filter: saturate(1.08) brightness(1.67); }
.hero-shade {
  background:
    linear-gradient(0deg, #131113 1%, #141112b9 12%, transparent 44%),
    linear-gradient(90deg, #151315 3%, #171416 26%, #1a1517f7 35%, #1c1414a8 48%, transparent 68%),
    linear-gradient(180deg, #15121477, transparent 32%);
}
.hero-light {
  inset: 0 -10%;
  background: radial-gradient(ellipse at 65% 40%, #f4a3521f, transparent 44%);
  mix-blend-mode: screen;
}
.motion-enabled .hero-light { animation: light-drift 11s ease-in-out infinite alternate; }
.motion-enabled .world img { animation: scene-drift 15s ease-in-out infinite alternate; }
.motion-enabled .world-silent img { animation-direction: alternate-reverse; }
@keyframes light-drift {
  from { transform: translateX(-8%); opacity: .48; }
  to { transform: translateX(8%); opacity: 1; }
}
@keyframes scene-drift {
  from { scale: 1; }
  to { scale: 1.065; }
}
.hero-content {
  min-height: clamp(36rem, 74svh, 48rem);
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-intro { align-self: center; padding-block: 3.6rem 2.6rem; }
.hero h1 {
  font-size: clamp(6rem, 11.8vw, 11rem);
  line-height: .77;
  letter-spacing: .006em;
  text-transform: uppercase;
  margin-left: -.032em;
  animation: enter .75s cubic-bezier(.22, 1, .36, 1) both;
}
.hero h1 span { color: var(--accent); }
.hero-intro p {
  margin-block: 1.55rem 1.45rem;
  font-size: clamp(.97rem, 1.6vw, 1.15rem);
  color: #e0d7ce;
  animation: enter .75s .09s cubic-bezier(.22, 1, .36, 1) both;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  padding: .78rem 1.1rem;
  border: 1px solid #fdd49b;
  border-radius: .25rem;
  font-size: .88rem;
  font-weight: 700;
  transition: background .22s ease, box-shadow .22s ease;
}
.button.primary { background: var(--accent); color: #1f140a; animation: enter .75s .16s cubic-bezier(.22, 1, .36, 1) both; }
.button.primary:is(:hover, :focus-visible) { background: #ffca85; box-shadow: 0 .45rem 1.6rem #f6ae5840; }
@keyframes enter {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-foot { min-height: 4.8rem; display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.world-links { display: flex; margin-left: auto; gap: .6rem; }
.world-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .72rem;
  border: 1px solid #ffffff2c;
  border-radius: .25rem;
  background: #141214d6;
  font-size: .73rem;
  font-weight: 650;
  transition: border-color .25s, color .25s, background .25s;
}
.world-link:is(:hover, :focus-visible) { border-color: var(--accent); color: var(--accent); background: #201612; }
.motion-button {
  align-items: center;
  gap: .55rem;
  padding: .42rem .25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  cursor: pointer;
}
.motion-button:not([hidden]) { display: inline-flex; }
.motion-button:is(:hover, :focus-visible) { color: var(--paper); }
.motion-icon { width: .63rem; height: .72rem; border-inline: 2px solid currentColor; }
.motion-button[aria-pressed="true"] .motion-icon {
  height: 0;
  border: 0;
  border-left: .59rem solid currentColor;
  border-block: .36rem solid transparent;
}

.games-section { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.section-heading { display: flex; align-items: center; gap: 1.5rem; margin-bottom: clamp(1.4rem, 3vw, 2.15rem); }
.section-heading > span { flex: 1; height: 1px; background: linear-gradient(90deg, #f6ae5860, var(--line)); }
h2 { font-size: clamp(3.1rem, 6.3vw, 5.4rem); text-transform: uppercase; }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.1rem, 3vw, 2.4rem); }
.game-card { --game-accent: #f6ae58; min-width: 0; }
.silent-card { --game-accent: #b6c7fa; }
.outstep-card { --game-accent: #4fd1bd; }
.game-art {
  position: relative;
  display: block;
  isolation: isolate;
  aspect-ratio: 1.72;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .34rem;
  background: #231e21;
}
.game-art img { height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.22, 1, .36, 1), filter .35s; }
.copper-card img { object-position: 50% 73%; }
.silent-card img { object-position: 50% 38%; }
.game-art::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(155deg, transparent 55%, #0f0c17a0);
  content: "";
  pointer-events: none;
}
.game-art:is(:hover, :focus-visible) img { transform: scale(1.05); filter: saturate(1.09); }
.art-arrow {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid #ffffff56;
  border-radius: .25rem;
  background: #141216df;
  transition: color .2s, background .2s, transform .2s;
}
.game-art:is(:hover, :focus-visible) .art-arrow { background: var(--game-accent); color: #161215; transform: translate(.15rem, -.15rem); }
.game-info { padding: 1.25rem 0 0; }
.genre { font-size: .73rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; color: var(--game-accent); }
.game-info h3 { font-size: clamp(2.7rem, 5.1vw, 4.65rem); margin-block: .28rem .7rem; }
.game-description { max-width: 34rem; min-height: 3.2em; color: var(--muted); }
.game-actions { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; margin-top: 1.2rem; }
.game-actions a, .footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .86rem;
  font-weight: 650;
  transition: color .2s;
}
.game-actions a { padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.game-actions a:is(:hover, :focus-visible) { color: var(--game-accent); }

.studio-section {
  position: relative;
  isolation: isolate;
  border-block: 1px solid var(--line);
  background: #191416;
}
.studio-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #171416 5%, #171416ec 42%, #17141699 100%),
    url("assets/silent-chamber-gate.webp") center 48% / cover;
}
.studio-inner { padding-block: clamp(3rem, 6vw, 5rem); }
.studio-inner h2 { font-size: clamp(3rem, 5vw, 4.4rem); }
.studio-inner p { max-width: 34rem; margin-top: 1rem; color: var(--muted); }

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 4.5rem; color: var(--muted); font-size: .78rem; }
.footer-inner a { font-size: .78rem; }
.footer-inner a:is(:hover, :focus-visible) { color: var(--accent); }

.motion-enabled [data-reveal] {
  transform: translateY(.95rem);
  opacity: .84;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .6s;
}
.motion-enabled [data-reveal].in-view { transform: none; opacity: 1; }
.motion-paused { scroll-behavior: auto; }
.motion-paused .hero-light, .motion-paused .world img { animation-play-state: paused; }
.motion-paused [data-reveal] { transform: none; opacity: 1; transition: none; }
.motion-paused .world img { transition: none; }
.motion-paused .game-art img { transform: none; transition: none; }

@media (max-width: 900px) {
  .hero-shade {
    background:
      linear-gradient(0deg, #131113 2%, #141112a8 17%, transparent 46%),
      linear-gradient(90deg, #151315 2%, #171416 20%, #1a1517cf 35%, #1c141460 61%, transparent 75%);
  }
  .world-copper { left: 29%; right: 18%; }
  .world-silent { left: 70%; }
  .hero-content { min-height: 36rem; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 3.9rem; }
  .header-inner nav { font-size: .77rem; }
  .wordmark { gap: .4rem; }
  .brand-icon { width: 1.9rem; height: 1.9rem; }
  .wordmark > span { font-size: 1.18rem; }
  .wordmark small { margin-top: .2rem; font-size: .46rem; }
  .hero-content { min-height: 0; }
  .hero-intro { padding-block: clamp(12.5rem, 50vw, 18rem) 1rem; }
  .hero h1 { font-size: clamp(4.8rem, 16vw, 7.1rem); }
  .hero-intro p { margin-block: 1.1rem 1.15rem; }
  .hero-foot { min-height: 4.4rem; }
  .world { bottom: auto; height: clamp(18.5rem, 69vw, 24rem); }
  .world-copper { left: 0; right: 39%; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
  .world-copper img { object-position: 53% 65%; }
  .world-silent { left: 52%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
  .world-silent img { object-position: 78% 40%; }
  .hero-shade { background: linear-gradient(0deg, #151315 27%, #151315 42%, #151315e8 50%, #15131545 72%, #15131500 92%); }
  .world-links { gap: .35rem; }
  .world-link { font-size: .65rem; gap: .33rem; padding: .38rem .42rem; }
  .motion-button { padding-inline: 0; min-height: 2.25rem; }
  .motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .games-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .game-info { padding-top: 1rem; }
  .game-description { min-height: 0; }
  .game-actions { margin-top: .85rem; }
  .studio-inner p { margin-top: .75rem; }
}

@media (max-width: 370px) {
  .header-inner { width: calc(100% - 2rem); gap: .5rem; }
  .header-inner nav { gap: .55rem; font-size: .73rem; }
  .brand-icon { width: 1.7rem; height: 1.7rem; }
  .wordmark > span { font-size: 1.08rem; }
  .hero h1 { font-size: clamp(4rem, 20vw, 4.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-enabled [data-reveal] { transform: none; opacity: 1; }
  .motion-button { display: none !important; }
}
