/* Biafe home — 2026 redesign. Scoped to .hx so the rest of the catalog keeps theme.css. */
.hx {
  --hx-ink: #16120f;
  --hx-paper: #fbf7f1;
  --hx-cream: #f3ece1;
  --hx-line: #e3d7c6;
  --hx-muted: #5f5449;
  --hx-acc: #9a3412;
  --hx-acc-2: #c2410c;
  --hx-glow: #f59e0b;
  background: var(--hx-paper);
  color: var(--hx-ink);
}
.hx h1, .hx h2, .hx h3 { font-family: var(--md-display); letter-spacing: -.025em; text-wrap: balance; margin: 0; }
.hx p { text-wrap: pretty; }
.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 12.5px/1 var(--md-font); letter-spacing: .16em; text-transform: uppercase; color: var(--hx-acc); }
.hx-eyebrow span { width: 26px; height: 2px; background: currentColor; display: block; }

/* hero */
.hx-hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 82% 40%, rgba(245, 158, 11, .22), transparent 62%), radial-gradient(700px 500px at 0% 100%, rgba(194, 65, 12, .18), transparent 60%), var(--hx-ink); color: #f8f2e9; padding: 88px 0 96px; }
.hx-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.hx-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hx-hero .hx-eyebrow { color: #fbbf77; }
.hx-hero h1 { font-size: clamp(42px, 5.8vw, 78px); line-height: 1.02; font-weight: 650; margin: 0 0 22px; color: #fffaf2; }
.hx-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: #d8cdbf; max-width: 36rem; margin: 0 0 32px; }
.hx-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 8px 8px 8px 20px; background: #fffaf2; border-radius: 999px; color: var(--hx-muted); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.hx-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 17px/1 var(--md-font); color: var(--hx-ink); padding: 12px 4px; outline: none; }
.hx-search:focus-within { box-shadow: 0 0 0 3px #fbbf77, 0 30px 60px -30px rgba(0,0,0,.7); }
.hx-search button { min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--hx-acc-2); color: #fff; font: 700 16px/1 var(--md-font); cursor: pointer; transition: background .2s ease; }
.hx-search button:hover { background: var(--hx-acc); }
.hx-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 40px 0 0; }
.hx-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hx-stats dt { font-size: 14px; color: #bcae9d; }
.hx-stats dd { margin: 0; font: 650 40px/1 var(--md-display); color: #fffaf2; }
.hx-stats dd.hx-stats__txt { font-size: 24px; line-height: 40px; }
.hx-hero__art { position: relative; aspect-ratio: 1 / 1; }
.hx-orbit { position: absolute; inset: 0; }
.hx-orbit::before, .hx-orbit::after { content: ""; position: absolute; border: 1px dashed rgba(251, 191, 119, .28); border-radius: 50%; }
.hx-orbit::before { inset: 6%; }
.hx-orbit::after { inset: 26%; border-style: solid; border-color: rgba(251, 191, 119, .18); background: radial-gradient(closest-side, rgba(245, 158, 11, .25), transparent); }
.hx-orbit__item { position: absolute; width: 34%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 28px; background: rgba(255, 250, 242, .06); border: 1px solid rgba(255, 250, 242, .12); backdrop-filter: blur(6px); animation: hx-float 8s ease-in-out infinite; }
.hx-orbit__item img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); }
.hx-orbit__item--1 { left: 33%; top: 30%; width: 40%; background: rgba(255, 250, 242, .1); z-index: 2; }
.hx-orbit__item--2 { left: 0; top: 4%; animation-delay: -1.5s; }
.hx-orbit__item--3 { right: 0; top: 0; width: 28%; animation-delay: -3s; }
.hx-orbit__item--4 { left: 2%; bottom: 4%; width: 28%; animation-delay: -4.5s; }
.hx-orbit__item--5 { right: 2%; bottom: 8%; animation-delay: -6s; }
.hx-orbit__item--6 { left: 40%; bottom: -4%; width: 22%; animation-delay: -2s; }
@keyframes hx-float { 50% { transform: translateY(-12px); } }

/* section heads */
.hx-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin: 0 0 44px; }
.hx-head h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.05; font-weight: 650; }
.hx-head > p { margin: 0; color: var(--hx-muted); font-size: 18px; max-width: 34rem; }
.hx-head--center { display: block; text-align: center; }

/* goals */
.hx-goals { padding-top: 96px; padding-bottom: 96px; }
.hx-goal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hx-goal-grid a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 20px 46px 20px 20px; min-height: 92px; background: #fff; border: 1px solid var(--hx-line); border-radius: 18px; text-decoration: none; color: inherit; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.hx-goal-grid a:hover { transform: translateY(-3px); border-color: var(--tone); box-shadow: 0 18px 36px -24px var(--tone); }
.hx-goal-grid a:focus-visible { outline: 3px solid var(--tone); outline-offset: 3px; }
.hx-goal__icon { grid-row: 1 / span 2; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); }
.hx-goal__svg { width: 28px; height: 28px; }
.hx-goal__name { font: 650 18px/1.25 var(--md-display); }
.hx-goal__count { font-size: 14px; color: var(--hx-muted); }
.hx-goal__arrow { position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--tone); opacity: .45; transition: opacity .2s ease, translate .2s ease; }
.hx-goal-grid a:hover .hx-goal__arrow { opacity: 1; translate: 4px -50%; }

/* shelf */
.hx-shelf { background: var(--hx-cream); padding: 96px 0; border-block: 1px solid var(--hx-line); }
.hx-shelf__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.hx-card a, .hx-card__static { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--hx-line); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .22s ease, box-shadow .22s ease; }
.hx-card a:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(28, 22, 18, .45); }
.hx-card__media { display: flex; align-items: center; justify-content: center; height: 210px; background: radial-gradient(circle at 50% 60%, #fff, var(--hx-paper)); padding: 18px; overflow: hidden; }
.hx-card__media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s ease; }
.hx-card a:hover .hx-card__media img { transform: scale(1.05); }
.hx-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-top: 1px solid var(--hx-line); }
.hx-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hx-acc); }
.hx-card__name { font: 650 19px/1.2 var(--md-display); }
.hx-card__go { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--hx-muted); }
.hx-shelf__more { text-align: center; margin: 44px 0 0; }
.hx-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--hx-ink); color: #fffaf2; font-weight: 700; text-decoration: none; transition: background .2s ease; }
.hx-btn:hover { background: var(--hx-acc); }

/* how */
.hx-how { padding-top: 96px; padding-bottom: 96px; }
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hx-steps li { position: relative; padding: 32px 28px; background: #fff; border: 1px solid var(--hx-line); border-radius: 22px; }
.hx-steps__n { display: block; font: 650 44px/1 var(--md-display); color: var(--hx-acc-2); margin-bottom: 18px; }
.hx-steps h3 { font-size: 23px; margin: 0 0 8px; }
.hx-steps p { margin: 0; color: var(--hx-muted); }
.hx-note { max-width: 62rem; margin: 40px auto 0; text-align: center; font-size: 14.5px; color: var(--hx-muted); }

@media (max-width: 1080px) {
  .hx-goal-grid { grid-template-columns: repeat(3, 1fr); }
  .hx-shelf__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hx-hero { padding: 56px 0 64px; }
  .hx-hero__grid, .hx-head { grid-template-columns: 1fr; }
  .hx-hero__art { max-width: 420px; width: 100%; margin: 0 auto; order: -1; }
  .hx-goal-grid, .hx-shelf__list { grid-template-columns: repeat(2, 1fr); }
  .hx-steps { grid-template-columns: 1fr; }
  .hx-goals, .hx-how, .hx-shelf { padding-top: 68px; padding-bottom: 68px; }
}
@media (max-width: 520px) {
  .hx-goal-grid { grid-template-columns: 1fr; }
  .hx-search button { padding: 0 18px; }
  .hx-stats { gap: 14px 28px; }
  .hx-stats dd { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 520px) { .hx-card__media { height: 160px; } }
