/* ==========================================================================
   ASPHALTOS — styles
   Desktop layout is drawn on a 1672px artboard and scaled with --u
   so the hero, cards and headings keep the exact proportions of the design.
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --red: #e0112b;
  --red-hover: #f0213b;
  --ink: #1d1d20;
  --muted: #5f5e63;
  --paper: #f7f3ef;
  --dark: #101015;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --container: 1430px;
  /* one design pixel of the 1672px artboard */
  --u: min(calc(100vw / 1672), 1.3px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: min(var(--container), calc(100% - 10.6%)); margin: 0 auto; }
.skip-link { position: absolute; left: 10px; top: -90px; z-index: 1000; padding: 12px; background: #fff; }
.skip-link:focus { top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: calc(64 * var(--u));
  min-height: 56px;
  color: #fff;
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  background: rgba(16, 16, 21, 0.92);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  padding: 0 calc(107 * var(--u)) 0 calc(131 * var(--u));
}
.brand { flex: 0 0 auto; width: calc(228 * var(--u)); min-width: 150px; }
.brand img { width: 100%; height: auto; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: calc(44 * var(--u));
  height: 100%;
}
.nav-link {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: calc(5 * var(--u));
  font-size: max(calc(11.6 * var(--u)), 10px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: #fff;
  white-space: nowrap;
}
.nav-link:after {
  content: "";
  position: absolute;
  bottom: calc(13 * var(--u));
  left: calc(-3 * var(--u));
  right: calc(2 * var(--u));
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link.active:after, .nav-link:hover:after { transform: scaleX(1); }
.menu-toggle, .mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(500 * var(--u));
  min-height: 420px;
  background: #1a1517;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-scene.webp") center top / cover no-repeat;
}
.hero-inner {
  height: 100%;
  padding-left: calc(132 * var(--u));
}
.hero-content { padding-top: calc(120 * var(--u)); }
.hero h1 {
  font-weight: 300;
  font-size: calc(62 * var(--u));
  line-height: calc(66 * var(--u));
  letter-spacing: -0.012em;
  margin: 0 0 calc(20 * var(--u)) calc(-7 * var(--u));
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}
.hero h1 strong { font-weight: 700; }
.hero-content > p {
  font-size: calc(18 * var(--u));
  line-height: calc(25.5 * var(--u));
  font-weight: 400;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 0 0 calc(27 * var(--u)) calc(-1 * var(--u));
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25);
}

/* ---------- Buttons ---------- */
.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 100px;
  font-family: var(--font);
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  min-height: 52px;
  padding: 0 30px;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-hover); box-shadow: 0 12px 30px rgba(224, 17, 43, 0.35); }
.button > span { font-size: 18px; font-weight: 400; }
.hero .button {
  height: calc(50 * var(--u));
  min-height: 44px;
  padding: 0 calc(30 * var(--u)) 0 calc(32 * var(--u));
  gap: calc(13 * var(--u));
  font-size: max(calc(15 * var(--u)), 12px);
  letter-spacing: 0.09em;
}
.button-arrow { width: calc(13 * var(--u)); min-width: 11px; height: auto; transition: transform 0.2s; }
.button:hover .button-arrow { transform: translateX(3px); }

/* ---------- Games ---------- */
.section-light { background: var(--paper); }
.game-section { padding: calc(32 * var(--u)) 0 0; }
.games-wrap { width: calc(1502 * var(--u)); margin: 0 auto; transform: translateX(calc(5 * var(--u))); }
.section-title {
  text-align: center;
  font-weight: 300;
  font-size: calc(43.2 * var(--u));
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  margin: calc(-5 * var(--u)) 0 calc(22 * var(--u));
  position: relative;
  left: calc(-3 * var(--u));
}
.section-title strong, .studio-copy h2 strong, .people-heading h2 strong { font-weight: 700; letter-spacing: -0.012em; word-spacing: -0.06em; }
.games-grid {
  display: grid;
  grid-template-columns: 495fr 487fr 483fr;
  gap: calc(19 * var(--u));
}
.game-card {
  height: calc(221 * var(--u));
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: calc(16 * var(--u));
  background: #14151a;
  color: #fff;
  padding: 0;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 16, 12, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18); }
.game-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.game-card:hover > img { transform: scale(1.05); }
.game-card > img.pos-right { object-position: 100% 50%; }
.game-card-label {
  position: absolute;
  left: calc(34 * var(--u));
  bottom: calc(33 * var(--u));
  font-size: calc(24 * var(--u));
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.game-card-label:after {
  content: "";
  position: absolute;
  left: calc(1 * var(--u));
  bottom: calc(-13 * var(--u));
  width: calc(39 * var(--u));
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.game-card:hover .game-card-label:after { width: calc(64 * var(--u)); }

/* ---------- Studio ---------- */
/* eyebrow labels (lower sections, dialog) */
.eyebrow { font-size: 11px; letter-spacing: 0.2em; font-weight: 700; color: #fff; text-transform: uppercase; }
.red-eyebrow { color: var(--red); }
.people-heading h2 { font-weight: 300; font-size: clamp(32px, 3vw, 50px); letter-spacing: -0.012em; line-height: 1.2; margin: 16px 0 0; }

.studio-section { padding: calc(58 * var(--u)) 0 calc(120 * var(--u)); }
.studio-grid {
  display: grid;
  grid-template-columns: calc(672 * var(--u)) 1fr;
  align-items: start;
  gap: calc(64 * var(--u));
  padding: 0 calc(110 * var(--u)) 0 calc(116 * var(--u));
}
.studio-visual {
  position: relative;
  aspect-ratio: 672 / 430;
  border-radius: calc(18 * var(--u));
  overflow: hidden;
  background: #101015;
}
.studio-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 40%; }
.studio-visual:after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); }
.visual-stamp { position: absolute; left: 32px; bottom: 30px; color: #fff; z-index: 1; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.6; }
.visual-stamp strong { font-size: 23px; letter-spacing: -0.01em; }
.studio-copy { padding-top: 0; }
.studio-copy h2 {
  font-weight: 300;
  font-size: calc(40.4 * var(--u));
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 calc(28 * var(--u));
  white-space: nowrap;
}
.studio-copy > p { max-width: 540px; font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 16px; }
.text-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  transition: gap 0.2s;
}
.text-link:hover { gap: 32px; }
.text-link span { color: var(--red); font-size: 18px; }

.manifesto-section {
  position: relative;
  isolation: isolate;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #15141b;
}
.manifesto-background {
  z-index: -1;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(14, 14, 20, 0.94) 0%,
      rgba(14, 14, 20, 0.84) 38%,
      rgba(14, 14, 20, 0.4) 100%
    ),
    url("assets/mountain-drift.jpg") center 52% / cover;
}
.manifesto-content {
  padding-top: 95px;
  padding-bottom: 95px;
}
.manifesto-content h2 {
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 20px 0 28px;
}
.manifesto-content em {
  font-style: normal;
  color: var(--red);
}
.manifesto-content p {
  max-width: 610px;
  font-size: 16px;
  line-height: 1.9;
  color: #e4e2e5;
}
.people-section {
  padding: 120px 0 140px;
}
.people-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  gap: 25px;
}
.people-heading h2 {
  margin-bottom: 0;
}
.people-heading > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 320px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.person-card {
  position: relative;
  height: clamp(320px, 31vw, 440px);
  overflow: hidden;
  border-radius: 16px;
  background: #101015;
}
.person-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.5s;
}
.person-card:hover img {
  transform: scale(1.045);
}
.person-card:after {
  position: absolute;
  content: "";
  inset: 44% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}
.person-card > div {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 26px;
  color: white;
}
.person-card > div span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.person-card > div p {
  font-size: 12px;
  margin: 8px 0 0;
  opacity: 0.85;
}
.careers-section {
  background: var(--red);
  color: #fff;
  padding: 100px 0;
}
.careers-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.careers-layout h2 {
  font-size: clamp(38px, 3.9vw, 60px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.17;
  margin: 16px 0;
}
.careers-layout h2 strong {
  font-weight: 700;
}
.careers-layout p {
  max-width: 580px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.button-white {
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}
.button-white:hover {
  background: #f4ebec;
}
.footer {
  background: #111116;
  color: #fff;
  padding: 75px 0 27px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 70px;
  padding-bottom: 75px;
}
.footer-brand img {
  width: 218px;
  height: auto;
}
.footer-brand p {
  color: #a8a8ae;
  font-size: 13px;
  line-height: 1.9;
  margin: 23px 0 0;
}
.footer-links {
  display: flex;
  gap: clamp(60px, 9vw, 150px);
}
.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.footer-links a,
.footer-links span {
  font-size: 13px;
  color: #a8a8ae;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
}
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid #2a2a30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 10px;
  color: #9b9aa0;
  letter-spacing: 0.08em;
}
.footer-bottom a {
  color: #fff;
}
.tiny-red {
  color: var(--red);
}
.mode-dialog {
  max-width: 600px;
  width: calc(100% - 36px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.38);
  background: var(--paper);
  color: var(--ink);
}
.mode-dialog::backdrop {
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(8px);
}
.mode-dialog > img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}
.dialog-content {
  padding: 32px 40px 40px;
}
.dialog-content h2 {
  font-size: 44px;
  letter-spacing: -0.02em;
  margin: 12px 0;
}
.dialog-content p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
}
.dialog-dismiss {
  margin-top: 12px;
}
.dialog-close {
  position: absolute;
  right: 20px;
  top: 18px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.game-card.reveal.visible:hover {
  transform: translateY(-7px);
}

@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-in { animation: heroIn 0.9s 0.1s ease-out both; }

/* ---------- Responsive ---------- */
@media (min-width: 2174px) {
  /* beyond the scale cap keep the artboard centred */
  .nav-shell, .hero-inner { max-width: calc(1672 * var(--u)); margin: 0 auto; }
  .hero-scene { background-size: cover; }
}
@media (max-width: 1200px) {
  .container { width: calc(100% - 9%); }
  .desktop-nav { gap: 26px; }
  .nav-link { font-size: 11px; }
}
@media (max-width: 1024px) {
  .hero { height: auto; min-height: 0; }
  .hero-scene { background-position: 62% center; }
  .hero:before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(14, 10, 12, 0.72) 0%, rgba(14, 10, 12, 0.45) 45%, rgba(14, 10, 12, 0) 75%);
  }
  .hero-inner { padding: 0 6%; }
  .hero-content { padding: 140px 0 90px; max-width: 560px; }
  .hero h1 { font-size: clamp(38px, 5.6vw, 56px); line-height: 1.08; margin: 0 0 20px; }
  .hero-content > p { font-size: 16px; line-height: 1.6; margin: 0 0 28px; }
  .hero .button { height: 50px; padding: 0 30px; gap: 12px; font-size: 13px; }
  .button-arrow { width: 13px; }
  .game-section { padding-top: 64px; }
  .games-wrap { width: calc(100% - 8%); transform: none; }
  .section-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 28px; left: 0; }
  .games-grid { gap: 14px; }
  .game-card { height: clamp(170px, 22vw, 230px); border-radius: 14px; }
  .game-card-label { left: 22px; bottom: 30px; font-size: clamp(17px, 2.3vw, 22px); }
  .game-card-label:after { bottom: -12px; width: 34px; }
  .game-card:hover .game-card-label:after { width: 54px; }
  .studio-section { padding: 70px 0 100px; }
  .studio-grid { padding: 0 4%; gap: 48px; grid-template-columns: 1fr 1fr; }
  .studio-visual { border-radius: 16px; }
  .studio-copy h2 { font-size: clamp(28px, 3.6vw, 40px); white-space: normal; margin-bottom: 22px; }
}
@media (max-width: 850px) {
  .site-header { height: 72px; }
  .nav-shell { padding: 0 5%; }
  .brand { width: 190px; }
  .desktop-nav { display: none; }
  .menu-toggle {
    position: relative; width: 44px; height: 44px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px; z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%;
    background: rgba(8, 8, 12, 0.2); cursor: pointer;
  }
  .menu-toggle span { width: 18px; height: 2px; background: #fff; transition: transform 0.2s, opacity 0.2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }
  .mobile-nav {
    display: flex; position: fixed; inset: 0 0 auto 0; height: 100dvh; background: #111116;
    flex-direction: column; justify-content: center; padding: 105px 8%; gap: 20px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-nav a { color: #fff; font-size: clamp(24px, 6vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
  .mobile-nav a:hover { color: var(--red); }
  .games-grid { grid-template-columns: 1fr; gap: 16px; }
  .game-card { height: clamp(200px, 46vw, 300px); }
  .game-card-label { font-size: 24px; left: 26px; bottom: 34px; }
  .studio-grid { grid-template-columns: 1fr; gap: 36px; }
  .studio-copy { max-width: 620px; }
  .people-section { padding: 100px 0; }
  .people-grid { gap: 15px; }
  .person-card { height: 330px; }
  .footer-links { gap: 50px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .site-header { height: 66px; }
  .nav-shell { padding: 0 20px; }
  .brand { width: 168px; }
  .hero-scene { background-position: 66% center; }
  .hero:before { background: linear-gradient(180deg, rgba(14, 10, 12, 0.35) 0%, rgba(14, 10, 12, 0.55) 55%, rgba(14, 10, 12, 0.8) 100%); }
  .hero-inner { padding: 0 20px; }
  .hero-content { padding: 150px 0 64px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 48px); }
  .hero-content > p { font-size: 15px; }
  .hero-content > p br { display: none; }
  .games-wrap { width: calc(100% - 40px); }
  .game-section { padding-top: 56px; }
  .section-title { font-size: clamp(26px, 7.4vw, 34px); }
  .section-title strong { display: block; }
  .studio-section { padding: 56px 0 84px; }
  .studio-grid { padding: 0 20px; }
  .studio-copy > p { font-size: 15px; }
  .visual-stamp { left: 22px; bottom: 20px; }
  .manifesto-section { min-height: 520px; }
  .manifesto-content h2 { font-size: clamp(36px, 9.5vw, 56px); }
  .manifesto-content p { font-size: 14px; }
  .people-section { padding: 80px 0 95px; }
  .people-heading { display: block; }
  .people-heading h2 { font-size: 32px; }
  .people-heading > p { margin-top: 20px; font-size: 14px; }
  .people-grid { grid-template-columns: 1fr; gap: 16px; }
  .person-card { height: 370px; }
  .person-card img { object-position: center 35%; }
  .careers-section { padding: 75px 0; }
  .careers-layout { display: block; }
  .careers-layout h2 { font-size: 38px; }
  .careers-layout p { font-size: 14px; margin-bottom: 29px; }
  .footer { padding-top: 60px; }
  .footer-main { display: block; padding-bottom: 48px; }
  .footer-links { margin-top: 48px; justify-content: space-between; gap: 25px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 13px; }
  .dialog-content { padding: 28px 24px; }
  .mode-dialog > img { height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    scroll-behavior: auto !important; transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
