/* D9Commerce front page — 7th build additions (inc/pages/home.php, Nov 22 2026). Prefix `f7-`. Uses front5.css' tokens.
   #see: the feature explainer showcase (js/pages/front-showcase.js) · #workday: the Higgsfield photo bento. */

/* ── #see: tabs + player ───────────────────────────────────────────────
   Eleven tabs since the 10th build: a swipe row on phones (the edges fade to show there is more; front-showcase.js keeps the
   chosen tab in view), even chips in rows from 768 px, and from 1200 px a column beside the player where only the chosen tab
   shows its subtitle (so eleven fit beside the film). */
.f7-see { padding: 72px 0 64px; }
.f7-show { display: grid; gap: 18px; margin-top: 34px; }
.f7-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter, 16px)); padding: 2px var(--gutter, 16px) 6px; scroll-padding-inline: var(--gutter, 16px); scroll-snap-type: x proximity; }
.f7-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 767.98px) {
  .f7-tabs { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 34px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 34px), transparent 100%); }
}
.f7-tab { position: relative; flex: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, background .2s; overflow: hidden; }
.f7-tab .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-alt); color: var(--primary-ink); font-size: 15px; }
.f7-tab .tx { display: flex; flex-direction: column; min-width: 0; }
.f7-tab b { font-size: 14.5px; font-weight: 750; color: var(--ink); white-space: nowrap; }
.f7-tab small { display: none; font-size: 13px; line-height: 1.35; color: var(--muted); }
.f7-tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.f7-tab .bar i { display: block; width: 0; height: 100%; background: var(--aurora); }
.f7-tab:hover { border-color: var(--line-2); }
.f7-tab[aria-selected="true"] { border-color: color-mix(in srgb, var(--focus) 55%, var(--line)); box-shadow: var(--shadow); background: #fff; }
.f7-tab[aria-selected="true"] .ic { background: var(--aurora); color: #fff; }
.f7-tab[aria-selected="true"] .bar { background: var(--line); }
.f7-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.f7-stage { display: grid; gap: 16px; min-width: 0; }
.f7-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #070B18; box-shadow: var(--win-shadow); }
.f7-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #070B18; }
.f7-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #4338CA; font-size: 26px; cursor: pointer; box-shadow: 0 18px 40px -12px rgba(2, 6, 23, .6); transition: transform .2s, opacity .2s; }
.f7-play i { margin-left: 4px; }
.f7-play:hover { transform: scale(1.06); }
.f7-show.playing .f7-play { opacity: 0; pointer-events: none; }
.f7-cap h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.f7-cap p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.f7-cap .tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.f7-cap .tools span { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; background: #EEF0FF; color: var(--primary-ink); }
.f7-note { margin-top: 18px; text-align: center; }

@media (min-width: 1024px) {
  .f7-see { padding: 104px 0 92px; }
  .f7-show { margin-top: 46px; }
  .f7-stage { gap: 18px; }
  .f7-cap h3 { font-size: 24px; }
}
@media (min-width: 768px) {
  .f7-tabs { flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {   /* even chips: four to a row, six from 1024 px; a short last row sits centred */
  .f7-tab { flex: 0 0 calc((100% - 24px) / 4); min-width: 0; padding-right: 10px; }
  .f7-tab b { white-space: normal; line-height: 1.2; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .f7-tab { flex-basis: calc((100% - 40px) / 6); }
}
@media (min-width: 1200px) {
  .f7-show { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
  .f7-tabs { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; }
  .f7-tab { min-height: 0; padding: 7px 14px 8px 8px; }
  .f7-tab b { font-size: 15px; }
  .f7-tab[aria-selected="true"] { align-items: flex-start; padding: 11px 14px 14px 10px; }
  .f7-tab[aria-selected="true"] .ic { width: 38px; height: 38px; }
  .f7-tab[aria-selected="true"] small { display: block; margin-top: 2px; white-space: normal; }
}

/* ── #workday: the photo bento ───────────────────────────────────────── */
.f7-gal { padding: 76px 0 70px; background: radial-gradient(120% 80% at 50% 0%, #131C44 0%, var(--band) 62%); }
.f7-bento { list-style: none; margin: 34px 0 18px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.f7-bento a { position: relative; display: block; height: 100%; border-radius: 18px; overflow: hidden; background: #0F1630; text-decoration: none;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); isolation: isolate; }
.f7-bento picture, .f7-bento img { display: block; width: 100%; height: 100%; }
.f7-bento img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.f7-bento a:hover img { transform: scale(1.04); }
.f7-bento .cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 44px 18px 16px;
  background: linear-gradient(0deg, rgba(5, 8, 20, .88), rgba(5, 8, 20, 0)); color: #fff; }
.f7-bento .cap b { font-size: 17px; line-height: 1.25; font-weight: 750; }
.f7-bento .cap em { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.f7-bento a:hover .cap em, .f7-bento a:focus-visible .cap em { background: #fff; color: #4338CA; }
.f7-bento a:focus-visible { outline: 3px solid #67E8F9; outline-offset: 3px; }
/* Phones: one swipeable row instead of ten tall tiles */
@media (max-width: 719px) {
  .f7-bento { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter, 16px)); margin-right: calc(-1 * var(--gutter, 16px)); padding: 0 var(--gutter, 16px) 6px; scroll-padding-inline: var(--gutter, 16px); }
  .f7-bento::-webkit-scrollbar { display: none; }
  .f7-bento li { flex: 0 0 84%; scroll-snap-align: start; }
}
@media (min-width: 720px) {
  .f7-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1024px) {
  .f7-gal { padding: 110px 0 96px; }
  /* 4 columns: two big tiles (2x2) and eight small ones */
  /* 10 tiles = two 2x2 + eight 1x1 = a full 4x4; dense packing fills the holes */
  .f7-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 168px; grid-auto-flow: dense; gap: 16px; margin-top: 46px; }
  .f7-bento li { grid-column: span 1; grid-row: span 1; }
  .f7-bento li.b0 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .f7-bento li.b2 { grid-column: 3 / span 2; grid-row: 3 / span 2; }
  .f7-bento img { aspect-ratio: auto; }
  .f7-bento li:not(.b0):not(.b2) .cap b { font-size: 15px; }
  .f7-bento li:not(.b0):not(.b2) .cap { padding: 36px 14px 12px; }
  .f7-bento li:not(.b0):not(.b2) .cap em { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; }   /* small tiles: just the icon */
  .f7-bento li:not(.b0):not(.b2) .cap em i { font-size: 14px; }
  .f7-bento li.b0 .cap b, .f7-bento li.b2 .cap b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .f7-bento img, .f7-tab, .f7-play { transition: none; }
}
