/* Font: Manrope, self-hosted, SIL Open Font License (assets/fonts/OFL-Manrope.txt) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-ext.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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.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;
}

:root {
  --bg: #0e1113;
  --surface: #161a1e;
  --surface-2: #1c2126;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.22);
  --text: #eef0f2;
  --muted: #a3abb3;
  --accent: #f2a33a;
  --accent-hover: #ffb85a;
  --on-accent: #1a1206;

  --font: "Manrope", system-ui, sans-serif;
  --radius: 16px;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 10vw, 7.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  scrollbar-color: #3a4148 var(--bg);
}

::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(14 17 19 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.header-row nav { margin-left: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav { display: flex; gap: 0.25rem; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}
.nav a:hover { color: var(--text); background: var(--surface); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 200ms var(--ease);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.92rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(242 163 58 / 0.14), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgb(40 120 112 / 0.16), transparent 60%);
}
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span { color: var(--muted); }

.lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.65;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Product tiles beside the hero copy */
.hero-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, minmax(1.4rem, auto));
  min-height: 19rem;
}
.tile {
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.45), 0 2px 6px rgb(0 0 0 / 0.3);
  font-weight: 800;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  letter-spacing: -0.02em;
  animation: settle 1100ms var(--ease) both;
}
.tile--realword { grid-column: 1 / 10; grid-row: 1 / 8; align-items: flex-start; }
.tile--arcade   { grid-column: 5 / 13; grid-row: 5 / 11; animation-delay: 120ms; }

@keyframes settle {
  from { transform: translateY(14px); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }

/* Shared typographic artwork fields */
.tile--realword,
.product-art--realword {
  background:
    radial-gradient(22rem 14rem at 80% 10%, rgb(120 220 200 / 0.28), transparent 60%),
    linear-gradient(150deg, #11423f, #0c2a2c);
}
.tile--arcade,
.product-art--arcade {
  background:
    radial-gradient(22rem 14rem at 20% 0%, rgb(242 163 58 / 0.32), transparent 60%),
    linear-gradient(150deg, #3a2352, #1c1430);
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section) 0; }
.section:last-of-type { padding-bottom: var(--section); }

.section-title {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Services */
.services {
  display: grid;
  gap: 1rem;
}
@media (min-width: 52rem) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }
  .service--lead { grid-row: span 2; }
}

.service {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.service h3 {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.service p { color: var(--muted); max-width: 46ch; }
.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgb(242 163 58 / 0.12);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service--lead {
  align-content: end;
  min-height: 18rem;
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgb(242 163 58 / 0.12), transparent 65%),
    var(--surface-2);
  border-color: rgb(242 163 58 / 0.28);
}
.service--lead h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -0.025em; }
.service--lead p { font-size: 1.08rem; color: #c3c9cf; }

/* Products */
.products {
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.product {
  display: grid;
  gap: 1rem;
}
.product-art {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1;
}
.product-art h3 {
  font: inherit;
}

/* Contact */
.cta {
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(40rem 20rem at 50% 120%, rgb(242 163 58 / 0.18), transparent 65%),
    var(--surface);
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.cta p {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.cta .btn { margin-top: 2rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 40rem) {
  .header-row nav { display: none; }
  .header-row .btn { margin-left: auto; }
  .hero-stack { min-height: 15rem; }
}
@media (max-width: 24rem) {
  .header-row { gap: 0.75rem; }
  .brand { font-size: 0.98rem; gap: 0.4rem; }
  .btn--small { padding-inline: 0.75rem; font-size: 0.88rem; }
}
