/* HIWORKS - hiworks.games
   Colors come from the game: asphalt, the Black Wave's smoke, the rig's yellow (also the
   logo's), and the studio logo's off-white and red. One family: Overpass (road-sign letters). */

@font-face { font-family: "Overpass"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/overpass-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Overpass"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/overpass-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/overpass-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Overpass"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/overpass-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: normal; font-display: swap; font-weight: 900;
  src: url(../fonts/overpass-latin-900-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Overpass"; font-style: normal; font-display: swap; font-weight: 900;
  src: url(../fonts/overpass-latin-ext-900-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --asphalt: #1b1d1c;
  --asphalt-2: #232624;
  --kerb: #34383a;
  --smoke: #2c2127;
  --lane: #e1b03c;
  --lane-ink: #1b1d1c;
  --bone: #e3e3e3;
  --dust: #a4a39d;
  --signal: #d31d1e;

  --font: "Overpass", "Segoe UI", system-ui, sans-serif;
  --step-0: 1.0625rem;   /* 17px body */
  --step-1: 1.3125rem;   /* 21px lede */
  --step-2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  --small: 0.875rem;

  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1200px;
  --text: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--bone);
  font: 400 var(--step-0)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--lane); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 900; line-height: 1.05; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--lane); color: var(--lane-ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 10; }
.site-header--over { position: absolute; inset: 0 0 auto 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav a { color: var(--bone); text-decoration: none; font-weight: 700; font-size: var(--small); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--lane); }
.site-header--solid { background: var(--asphalt); border-bottom: 1px solid var(--kerb); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px 10px;
  font: 700 1rem/1 var(--font); letter-spacing: 0.01em;
  border: 2px solid var(--lane); border-radius: 3px; cursor: pointer; text-decoration: none;
}
.btn--lane { background: var(--lane); color: var(--lane-ink); }
.btn--lane:hover { background: #ecc25a; border-color: #ecc25a; }
.btn--ghost { background: rgba(27, 29, 28, 0.55); color: var(--bone); border-color: rgba(227, 227, 227, 0.55); }
.btn--ghost:hover { border-color: var(--bone); }
.btn[aria-disabled="true"] { background: transparent; color: var(--lane); cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: flex-end; overflow: hidden; background: var(--smoke); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(36, 26, 31, 0.92) 0%, rgba(36, 26, 31, 0.72) 34%, rgba(36, 26, 31, 0) 68%),
    linear-gradient(180deg, rgba(27, 29, 28, 0.6) 0%, rgba(27, 29, 28, 0) 22%, rgba(27, 29, 28, 0) 62%, var(--asphalt) 100%);
}
.hero__body { padding-top: 140px; padding-bottom: clamp(88px, 12vh, 132px); }
.hero__logo { width: clamp(260px, 38vw, 560px); margin: 0 0 clamp(18px, 3vh, 28px) -0.6%; }
.hero__lede { font-size: clamp(1.375rem, 1rem + 1.4vw, 2.125rem); font-weight: 700; line-height: 1.2; max-width: 22ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vh, 34px); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--dust); font-size: var(--small); }

/* the road under the hero: one lane line, rolling south as the truck drives north */
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--asphalt); }
.road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--lane) 0 46px, transparent 46px 92px);
  animation: lane 2.4s linear infinite;
}
@keyframes lane { to { background-position: -92px 0; } }
@media (prefers-reduced-motion: reduce) { .road::before { animation: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: var(--text); margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--dust); margin-top: 14px; }

.intro { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.4; font-weight: 400; max-width: 34ch; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: var(--small); border-top: 1px solid var(--kerb); padding-top: 18px; }
.facts dt { color: var(--dust); }
.facts dd { margin: 0; font-weight: 700; }

/* the feature rows: a moving picture and a few lines, alternating sides */
.rows { display: grid; gap: clamp(56px, 9vw, 112px); }
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row:nth-child(even) .row__media { order: 2; }
.row__media { position: relative; aspect-ratio: 16 / 9; background: var(--asphalt-2); border-radius: 3px; overflow: hidden; }
.row__media video { width: 100%; height: 100%; object-fit: cover; }
.row h3 { font-size: var(--step-2); margin-bottom: 14px; }
.row p { color: #c9c8c3; max-width: 46ch; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.shots a { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--asphalt-2); }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease, opacity 0.2s; }
.shots a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shots img { transition: none; } .shots a:hover img { transform: none; } }

/* lane-dash list */
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; max-width: 980px; }
.dash-list li { position: relative; padding-left: 34px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 20px; height: 4px; background: var(--lane); }

/* studio */
.section.studio { border-top: 1px solid var(--kerb); padding-top: clamp(64px, 10vw, 128px); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio-logo { width: min(100%, 420px); }
.studio h2 { font-size: var(--step-2); margin-bottom: 16px; }
.studio p + p { margin-top: 14px; }
.studio p { max-width: 50ch; }
.mail { display: inline-block; margin-top: 8px; font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); font-weight: 900; letter-spacing: -0.01em; color: var(--bone); text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 0.2em; word-break: break-word; }
.mail:hover { color: #fff; text-decoration-thickness: 4px; }
.contact-block { margin-top: 40px; padding-top: 24px; border-top: 3px solid var(--signal); max-width: 520px; }
.contact-block h2 { font-size: var(--step-1); margin-bottom: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--kerb); padding: 28px 0 40px; color: var(--dust); font-size: var(--small); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { color: var(--bone); }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--bone); max-width: none; max-height: none; width: 100%; height: 100%; }
dialog::backdrop { background: rgba(10, 11, 11, 0.92); }
.dlg { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px var(--gutter) 24px; }
.dlg__frame { width: min(100%, 1400px, calc((100vh - 120px) * 16 / 9)); }
.dlg__frame video, .dlg__frame img { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.dlg__close { position: absolute; top: 10px; right: 10px; }
.dlg__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--dust); font-size: var(--small); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 2px solid rgba(227, 227, 227, 0.4); border-radius: 3px; background: rgba(27, 29, 28, 0.8); color: var(--bone); cursor: pointer; }
.icon-btn:hover { border-color: var(--bone); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- press kit ---------- */
.press-top { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.press-top h1 { font-size: var(--step-3); }
.press-top p { margin-top: 16px; max-width: 58ch; color: #c9c8c3; font-size: var(--step-1); line-height: 1.45; }
.press-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-bottom: clamp(64px, 10vw, 120px); }
.toc { position: sticky; top: 24px; align-self: start; font-size: var(--small); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--kerb); }
.toc a { display: block; padding: 6px 0 4px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--dust); text-decoration: none; }
.toc a:hover { color: var(--bone); border-left-color: var(--lane); }
.press-body { max-width: 820px; display: grid; gap: clamp(48px, 7vw, 80px); }
.press-body section { scroll-margin-top: 24px; }
.press-body h2 { font-size: var(--step-2); margin-bottom: 18px; }
.press-body p + p { margin-top: 14px; }
.press-body .note { color: var(--dust); font-size: var(--small); margin-top: 12px; }
.sheet { margin: 0; display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--kerb); }
.sheet dt, .sheet dd { margin: 0; padding: 12px 0 10px; border-bottom: 1px solid var(--kerb); }
.sheet dt { color: var(--dust); }
.sheet dd { font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { margin: 0; }
.tile img { width: 100%; border-radius: 2px; }
.tile figcaption { color: var(--dust); font-size: var(--small); margin-top: 6px; }
.tile--dark { background: #2a2d2b; padding: 22px; border-radius: 3px; }
.tile--light { background: #e3e3e3; padding: 22px; border-radius: 3px; }
.tile--dark img, .tile--light img { border-radius: 0; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.download .size { color: var(--dust); font-size: var(--small); }
.trailer-player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 3px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .intro-grid, .row, .row:nth-child(even), .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .row__media { order: 0; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-list { grid-template-columns: minmax(0, 1fr); }
  .press-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .brand img { height: 26px; }
  .nav .nav__game { display: none; }
  .hero { min-height: 640px; }
  .hero::before {
    background: linear-gradient(180deg, rgba(27, 29, 28, 0.55) 0%, rgba(36, 26, 31, 0.35) 30%, rgba(36, 26, 31, 0.85) 62%, var(--asphalt) 100%);
  }
  .hero__actions .btn { flex: 1 1 100%; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet dt { border-bottom: 0; padding-bottom: 0; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .dlg { padding: 64px 8px 16px; }
}

/* logo tiles: one height, the logo centred inside */
.tile--dark, .tile--light { aspect-ratio: 2 / 1; display: grid; place-items: center; }
.tile--dark img, .tile--light img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* the community line under the contact address */
.contact-block .community { margin-top: 18px; color: #c9c8c3; }
