.home-page { min-height: 100vh; }
.home-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
}
.home-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}
.home-brand > span:last-child span { color: var(--accent-deep); }
.home-topbar nav { display: flex; gap: 28px; }
.home-topbar nav a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.home-topbar nav a:hover, .home-topbar nav a.active { color: var(--ink); }
.home-topbar nav a.active::after {
  position: absolute;
  content: "";
  height: 2px;
  inset: auto 0 -25px;
  background: var(--accent-deep);
}
.home-topbar .top-actions { justify-self: end; }
.home-main { width: min(1320px, calc(100% - 48px)); margin: auto; }
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 110px 0 80px;
}
.home-hero::after {
  position: absolute;
  z-index: -1;
  content: "</>";
  top: 74px;
  right: 1%;
  color: color-mix(in srgb, var(--accent) 35%, transparent);
  font: 800 clamp(130px, 22vw, 290px) "DM Mono";
  letter-spacing: -35px;
  transform: rotate(-7deg);
}
.home-hero h1 { max-width: 760px; margin: 18px 0; font-size: clamp(45px, 6.5vw, 82px); letter-spacing: -4px; }
.home-hero h1 em { color: var(--accent-deep); }
.home-hero h1 em::after { display: none; }
.home-hero p { max-width: 650px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.home-primary-action {
  display: inline-grid;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 22px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.home-collections { padding: 70px 0 110px; border-top: 1px solid var(--line); }
.home-collections > header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.home-collections > header span { color: var(--muted); font: 500 10px "DM Mono"; letter-spacing: 1.6px; }
.home-collections > header h2 { margin: 6px 0 0; font-size: 36px; }
.home-collections > header p { color: var(--muted); font-size: 12px; }
.home-collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-collection-card {
  --card-accent: var(--accent);
  position: relative;
  display: flex;
  min-height: 238px;
  overflow: hidden;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}
.home-collection-card.orange { --card-accent: #ffad3d; }
.home-collection-card:hover { transform: translateY(-5px); border-color: var(--card-accent); }
.home-collection-card::before {
  position: absolute;
  content: "";
  width: 190px;
  height: 190px;
  top: -90px;
  right: -65px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 28%, transparent);
}
.home-card-top { display: flex; align-items: center; justify-content: space-between; }
.home-card-top > span { color: var(--muted); font: 500 10px "DM Mono"; letter-spacing: 1.4px; }
.home-card-top > b { padding: 5px 9px; border-radius: 99px; background: color-mix(in srgb, var(--card-accent) 24%, transparent); font-size: 10px; }
.home-card-copy { margin: auto 0; }
.home-card-copy h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: 0; }
.home-card-copy p {
  display: -webkit-box;
  max-width: 460px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.home-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); }
.home-card-bottom span { color: var(--muted); font: 500 11px "DM Mono"; }
.home-card-bottom strong { font-size: 12px; }
.home-card-progress { position: absolute; inset: auto 0 0; height: 4px; background: var(--line); }
.home-card-progress i { display: block; height: 100%; background: var(--card-accent); }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px max(24px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.home-footer span { color: var(--ink); font-weight: 800; }
.home-footer p { margin: 6px 0 0; }
.site-record-link { color: inherit; text-decoration: none; white-space: nowrap; }
.site-record-link:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) {
  .home-topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .home-topbar nav { display: none; }
  .home-main { width: min(100% - 32px, 1180px); }
  .home-hero { min-height: 430px; padding-top: 80px; }
  .home-hero::after { opacity: .5; }
  .home-collection-grid { grid-template-columns: 1fr; }
  .home-collections > header { align-items: flex-start; flex-direction: column; }
  .home-collection-card { min-height: 280px; }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .home-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
