/* ══════════════════════════════════════════════════════════════════════
   BENTO + EDITORIAL OVERRIDES  (2026 restyle: asymmetric tiles, oversized type)
   Loaded after sections.css so these win.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Oversized editorial hero title ── */
.hero__title {
  font-size: clamp(2.75rem, 6.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__subtitle { max-width: 30rem; }

/* ── Bento section ── */
.bento-section { padding-top: var(--space-12); }
.bento {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 215px;
  gap: var(--space-4);
}
.bento__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--dur-normal), transform var(--dur-normal) var(--ease-out);
}
.bento__tile:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
}
.bento__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.bento__tile h3 {
  font-size: var(--text-2xl);
  line-height: 1.05;
}
.bento__tile p {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  max-width: 42ch;
}
.bento__tile .btn { align-self: flex-start; margin-top: var(--space-2); }

/* spans */
.bento__tile--lg   { grid-column: span 2; grid-row: span 2; }
.bento__tile--wide { grid-column: span 2; }
.bento__tile--tall { grid-row: span 2; }

/* render-backed tiles: the cube render bleeds top, copy sits over a scrim */
.bento__tile--render {
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.bento__tile--render::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
              var(--color-bg) 4%, rgba(14,12,11,0.55) 42%, rgba(14,12,11,0.05) 100%);
  z-index: 0;
}
.bento__tile--render > * { position: relative; z-index: 1; }

.bento__tile--lg h3 { font-size: var(--text-4xl); max-width: 14ch; }
.bento__tile--lg p  { font-size: var(--text-base); }

/* trio: three equal tiles (the "beyond the stack" row) */
.bento--trio { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
.bento--trio .bento__tile { min-height: 196px; }

/* grid: equal feature tiles that flow (layer-detail "controls" sections) */
.bento--grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: auto;
}
.bento--grid .bento__tile {
  min-height: 148px;
  justify-content: flex-start;
  gap: var(--space-3);
}
.bento--grid .bento__tile h3 { font-size: var(--text-xl); }

/* channel chips inside the PBR tile */
.bento__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-1); }
.bento__chip {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--chip, var(--color-border-hover));
  color: var(--chip, var(--color-text-sub));
}

/* responsive: 2-col tablet, single-col mobile */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento__tile--lg { grid-column: span 2; grid-row: span 2; }
  .bento__tile--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__tile { min-height: 170px; grid-column: auto !important; grid-row: auto !important; }
}
