:root {
  color-scheme: dark;
  --bg: #141821;
  --surface: #202633;
  --surface-soft: #2a3140;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #aab3c2;
  --dim: #737d8d;
  --accent: #4d8dff;
  --lime: #96ef5b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
p {
  margin-top: 0;
}

h1,
p,
strong,
small {
  overflow-wrap: break-word;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #dbe4f2;
  font-size: 19px;
  line-height: 1.55;
}

.projects-page {
  padding-bottom: 64px;
}

.projects-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 5vw, 44px);
  align-items: center;
  padding: clamp(20px, 5vw, 42px) 0 clamp(20px, 4vw, 34px);
  margin: 0 0 clamp(16px, 4vw, 28px);
}

.projects-hero > * {
  position: relative;
  z-index: 1;
}

.projects-hero h1 {
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.projects-hero .lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.projects-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.projects-hero-visual {
  position: relative;
  justify-self: end;
  display: grid;
  place-items: center;
  width: min(31vw, 330px);
  min-width: 210px;
  aspect-ratio: 1;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #1b202b;
  box-shadow: var(--shadow);
}

.projects-hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 58% 38%, rgba(77, 141, 255, 0.26), transparent 42%),
    radial-gradient(circle at 34% 68%, rgba(150, 239, 91, 0.16), transparent 34%);
  filter: blur(22px);
  opacity: 0.9;
}

.projects-hero-image {
  display: block;
  width: 100%;
  min-width: 0;
  max-height: 100%;
  opacity: 0.95;
  border-radius: 6px;
  object-fit: contain;
  transform: translate(8px, -4px);
}

.projects-list {
  display: grid;
  gap: 14px;
}

.projects-sections {
  display: grid;
  gap: clamp(24px, 5vw, 42px);
}

.projects-section {
  display: grid;
  gap: 14px;
}

.projects-section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.projects-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 22px);
  align-items: center;
  min-height: 148px;
  overflow: hidden;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.projects-card-updated {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  gap: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.projects-card-updated small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.projects-card-media {
  display: block;
  width: 92px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: var(--surface-soft);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.34);
}

.projects-card-media--placeholder {
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 30px;
  font-weight: 900;
}

.projects-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.projects-card-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.projects-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.projects-card-title strong {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

.projects-card-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projects-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.projects-chip--status {
  color: var(--lime);
  border-color: rgba(150, 239, 91, 0.38);
  background: transparent;
}

.projects-card-description {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.projects-card:hover,
.projects-card:focus-visible {
  border-color: rgba(77, 141, 255, 0.52);
}

@media (max-width: 860px) {
  .projects-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
    padding-bottom: 40px;
  }

  .projects-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .projects-hero-visual {
    display: none;
  }

  .projects-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .projects-card-media {
    width: 82px;
    border-radius: 18px;
  }

  .projects-card-updated {
    position: static;
    order: 3;
    text-align: left;
  }
}
