/* ============================================================
   AXOM LABS — home.
   A different shape: a hero matrix, then an index of panels.
   Black. White. Dots. Nothing wasted.
   ============================================================ */

/* ---------- hero ---------- */
.home-hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.home-hero__matrix {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
/* soft vignette so the wordmark sits cleanly on the field */
.home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 52% 48% at 50% 48%,
    rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.45) 34%, transparent 68%);
}
.home-hero__inner { position: relative; z-index: 2; padding-inline: var(--gutter); max-width: 60rem; }
.home-hero .eyebrow { margin-bottom: 1.75rem; }
.home-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  font-weight: 300; letter-spacing: -0.04em; line-height: 1.02;
  text-wrap: balance;
}
.home-hero h1 em { font-style: normal; color: var(--ink-30); }
.home-hero__lead {
  margin: 1.75rem auto 0; max-width: 46ch;
  font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--ink-55);
}
.home-hero__cta {
  margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.home-hero__hint {
  position: absolute; bottom: 2rem; left: 0; right: 0; z-index: 2;
  text-align: center; font-size: var(--fs-micro); letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-30);
  animation: breathe 3.5s var(--ease) infinite;
}

/* ---------- universe (the index) ---------- */
.universe { padding: clamp(4rem, 11vh, 8.5rem) 0; }
.universe__head { margin-bottom: clamp(2.5rem, 5vh, 4rem); max-width: 46ch; }
.universe__head .eyebrow { margin-bottom: 1.25rem; }
.universe__head h2 {
  font-size: var(--fs-display); font-weight: 300; letter-spacing: -0.035em; line-height: 1.1;
}
.universe__head h2 em { font-style: normal; color: var(--ink-30); }

/* the bento — a matrix of panels */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(195px, auto);
  gap: 1px;
  background: rgba(0,0,0,0.10);          /* hairline grid lines via gap */
  border: 1px solid rgba(0,0,0,0.10);
}
.cell {
  position: relative; overflow: hidden;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: background 0.4s var(--ease);
}
/* dot motif, fades up on hover */
.cell::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.85) 1px, transparent 1.6px);
  background-size: 15px 15px;
  opacity: 0.05; transition: opacity 0.45s var(--ease);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 62%);
          mask-image: linear-gradient(135deg, #000 0%, transparent 62%);
}
.cell:hover::before { opacity: 0.16; }
.cell:hover { background: #fafafa; }
.cell > * { position: relative; z-index: 1; }

.cell__cat {
  font-size: var(--fs-micro); letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-45);
}
.cell__title {
  font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 0.7rem;
}
.cell__desc {
  color: var(--ink-55); font-weight: 300; font-size: var(--fs-body); line-height: 1.5;
  max-width: 34ch;
}
.cell__go {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-micro); letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); opacity: 0.55; transition: opacity 0.3s;
}
.cell__go .arrow { transition: transform 0.4s var(--ease); }
.cell:hover .cell__go { opacity: 1; }
.cell:hover .cell__go .arrow { transform: translateX(4px); }

/* feature cell — Axom, the anchor */
.cell--feature {
  grid-column: span 4; grid-row: span 2;
  color: var(--paper); background: var(--ink);
}
.cell--feature::before {
  background-image: radial-gradient(rgba(255,255,255,0.9) 1px, transparent 1.6px);
  opacity: 0.10;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 85% 90%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 90% 90% at 85% 90%, #000 0%, transparent 70%);
}
.cell--feature:hover { background: #0a0a0a; }
.cell--feature:hover::before { opacity: 0.20; }
.cell--feature .cell__cat { color: var(--pap-55); }
.cell--feature .cell__title { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.cell--feature .cell__desc { color: var(--pap-70); max-width: 40ch; font-size: var(--fs-lead); }
.cell--feature .cell__go { color: var(--paper); opacity: 0.7; }

.cell--span2 { grid-column: span 2; }
.cell--span3 { grid-column: span 3; }

/* ---------- closing band ---------- */
.home-close {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  min-height: 70svh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding-block: var(--air);
}
.home-close__matrix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.home-close::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--ink) 0%, rgba(0,0,0,0.65) 45%, transparent 78%);
}
.home-close__inner { position: relative; z-index: 2; padding-inline: var(--gutter); }
.home-close .eyebrow { color: var(--pap-40); margin-bottom: 1.75rem; }
.home-close h2 {
  font-size: var(--fs-display); font-weight: 300; letter-spacing: -0.035em;
  line-height: 1.1; max-width: 20ch; margin-inline: auto; color: var(--paper);
}
.home-close__cta { margin-top: 2.75rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn--paper { border-color: var(--paper); color: var(--paper); }
.btn--paper:hover { background: var(--paper); color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell--feature { grid-column: span 2; grid-row: span 1; }
  .cell--span2, .cell--span3 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cell--feature, .cell--span2, .cell--span3 { grid-column: span 1; }
  .home-hero__cta { flex-direction: column; align-items: center; }
}
