:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #181b20;
  --panel-2: #20252a;
  --text: #f5f0e8;
  --muted: #b7b0a6;
  --line: rgba(245, 240, 232, 0.16);
  --amber: #f2b84b;
  --cyan: #5bc7d9;
  --green: #77c77a;
  --red: #ff3f4f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(16, 17, 20, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.hero-actions,
.link-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  min-width: 0;
}

.brand > .brand-logo {
  display: block !important;
  position: static;
  inset: auto;
  z-index: auto;
  flex: 0 0 38px;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  pointer-events: none;
}

.top-nav {
  gap: 8px;
}

.top-nav a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.top-nav a:hover,
.top-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero {
  min-height: clamp(520px, calc(100svh - 148px), 700px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 7vw, 76px) clamp(18px, 6vw, 90px);
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.96) 0%, rgba(16, 17, 20, 0.82) 43%, rgba(16, 17, 20, 0.24) 100%),
    url("assets/tyler-hero.png") center right / cover no-repeat;
}

.hero-copy {
  width: min(650px, 100%);
}

.eyebrow,
.project-type {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 10vw, 6.3rem);
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #18130a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.work-grid,
.game-list,
.detail-list,
.about-block,
.content-section,
.privacy-section,
.media-grid,
.mini-assets {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 58px 0 76px;
}

.section-title {
  grid-column: 1 / -1;
}

.section-title h2,
.page-hero h1,
.content-section h2,
.privacy-section h2,
.about-block h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.project-card,
.detail-item,
.about-block,
.content-section,
.privacy-section,
.game-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.project-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #000;
}

.project-card h3 {
  font-size: 1.45rem;
}

.project-card p,
.detail-item p,
.about-block p,
.content-section p,
.privacy-section p,
.privacy-section li,
.game-row p {
  color: var(--muted);
  line-height: 1.65;
}

.text-link,
.project-card a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.subpage {
  padding: 44px 0 78px;
}

.page-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 20px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.14), rgba(91, 199, 217, 0.08)),
    var(--panel);
}

.game-list,
.detail-list {
  display: grid;
  gap: 16px;
}

.game-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
}

.game-row img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #000;
}

.game-row h2,
.detail-item h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.link-row {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.detail-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.45fr) 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.about-block {
  display: block;
  padding: clamp(24px, 5vw, 42px);
}

.game-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 63, 79, 0.12), rgba(91, 199, 217, 0.1)),
    var(--panel);
}

.game-hero img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #000;
}

.game-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.game-hero p:not(.eyebrow) {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 1.1rem;
}

.content-section,
.privacy-section {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 42px);
}

.privacy-section h3 {
  margin-top: 24px;
  font-size: 1.15rem;
}

.privacy-section ul {
  padding-left: 20px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.mini-assets {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.mini-assets img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 10px;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 610px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(16, 17, 20, 0.16) 0%, rgba(16, 17, 20, 0.9) 50%, rgba(16, 17, 20, 0.98) 100%),
      url("assets/tyler-hero.png") center top / cover no-repeat;
  }

  .work-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .detail-item,
  .game-row,
  .game-hero,
  .about-block {
    grid-template-columns: 1fr;
  }

  .detail-item {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .button {
    text-align: center;
  }

  .game-row img,
  .game-hero img {
    width: 118px;
    height: 118px;
    border-radius: 20px;
  }
}
