:root {
  --bg: #0b0c0f;
  --panel: #131519;
  --panel-hi: #171a1f;
  --line: #23262d;
  --line-hi: #31353e;
  --text: #eceae6;
  --muted: #8d919b;
  --dim: #666a74;
  --accent: #e8b04b;
  --radius: 16px;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* viewport grid, like a 3D editor floor — fades out below the header */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.35) 46%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.35) 46%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark { width: 24px; height: 24px; }
.m-top   { fill: var(--accent); }
.m-left  { fill: #ab7e30; }
.m-right { fill: #7b5b25; }

.brand-name {
  font-size: 1rem;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.top-mail {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
}
.top-mail:hover { color: var(--text); }

/* ---------- intro ---------- */

.intro {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 28px 52px;
}

.intro h1 {
  margin: 0 0 16px;
  max-width: 24ch;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 660;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px 96px;
}

.card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

a.card:hover,
a.card:focus-visible {
  background: var(--panel-hi);
  border-color: var(--line-hi);
  transform: translateY(-4px);
}

a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #08090c;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* fade the render into the card body */
.shot::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 38%;
  background: linear-gradient(to bottom, transparent, var(--panel));
  pointer-events: none;
}

a.card:hover .shot img { transform: scale(1.035); }
a.card:hover .shot::after { background: linear-gradient(to bottom, transparent, var(--panel-hi)); }

.body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 4px 22px 20px;
}

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.pipe {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  vertical-align: 3px;
}

.desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.specs li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--mono);
  font-size: 0.71rem;
  color: #b3b7c0;
}

.action {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.87rem;
  font-weight: 560;
  color: var(--accent);
}

a.card .action::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

a.card:hover .action::after { transform: translateX(4px); }

/* not published yet */
.card.soon .action { color: var(--dim); font-weight: 500; }
.card.soon .action::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
}
.card.soon .shot img { filter: saturate(0.9) brightness(0.86); }

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 28px 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.82rem;
}

.foot a { color: var(--dim); text-decoration: none; font-family: var(--mono); }
.foot a:hover { color: var(--text); }

@media (max-width: 560px) {
  .intro { padding: 52px 22px 40px; }
  .grid { padding: 0 22px 72px; gap: 18px; }
  .top, .foot { padding-left: 22px; padding-right: 22px; }
  .top-mail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
