/* "Made with Manto": one quiet row of films. Nothing plays on the page itself;
   a film opens in a dialog, which ends with the way to book a meeting.
   Primary blue appears only on that booking button. */
#app .manto-reel { background: #09090b; color: #fafafa; scroll-margin-top: 72px; }
#app .manto-reel .wrap { display: grid; gap: 24px; }

.reel-head { display: grid; gap: 12px; }
#app .reel-eyebrow { margin: 0 0 8px; color: #9191ee; }
#app .manto-reel h2 { margin: 0; color: #fafafa; }
#app .reel-head-side p { margin: 0; max-width: 40ch; color: #b4b4bb; }

.reel-rail { list-style: none; margin: 0 -24px; padding: 4px 24px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 24px; scrollbar-width: none; }
.reel-rail::-webkit-scrollbar { display: none; }
.reel-rail li { flex: none; width: min(72vw, 280px); scroll-snap-align: start; }
#app .reel-tile { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.reel-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #131316; outline: 1px solid #2a2a31; outline-offset: -1px; transition: outline-color .2s; }
.reel-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.reel-thumb.is-portrait img { object-position: 50% 22%; }
.reel-blank { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 120% at 100% 0%, rgba(66, 59, 229, .26), transparent 62%), #1a1a1f; }
.reel-blank b { color: #9191ee; font-variant-numeric: tabular-nums; }
.reel-glyph { position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: rgba(9, 9, 11, .72); color: #fafafa; border: 1px solid rgba(250, 250, 250, .24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s, color .2s; }
.reel-glyph svg { width: 16px; height: 16px; }
.reel-tile:hover .reel-thumb { outline-color: #9191ee; }
.reel-tile:hover .reel-thumb img { transform: scale(1.04); }
.reel-tile:hover .reel-glyph { background: #fafafa; color: #09090b; }
#app .reel-tile:focus-visible { outline: 2px solid #9191ee; outline-offset: 4px; border-radius: 12px; }
.reel-tile-meta { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; margin-top: 12px; }
.reel-num { grid-row: span 2; line-height: 22px; color: #9191ee; font-variant-numeric: tabular-nums; }
.reel-tile strong { font-weight: 500; color: #fafafa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-tile small { color: #b4b4bb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.reel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#app .reel-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fafafa; text-decoration: none; border-bottom: 1px solid #9191ee; }
#app .reel-all:hover { color: #9191ee; }
.reel-all span { transition: transform .2s; }
.reel-all:hover span { transform: translateX(3px); }
.reel-nav { display: none; gap: 8px; }
.reel-nav button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 999px; border: 1px solid #2a2a31; background: transparent; color: #fafafa; cursor: pointer; transition: border-color .2s, opacity .2s; }
.reel-nav button:hover:not(:disabled) { border-color: #9191ee; }
.reel-nav button:disabled { opacity: .35; cursor: default; }

/* Film dialog. */
.reel-modal { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #2a2a31; border-radius: 16px; background: #131316; color: #fafafa; overflow: hidden; }
.reel-modal::backdrop { background: rgba(9, 9, 11, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reel-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; }
#app .reel-modal h3 { margin: 0; color: #fafafa; }
.reel-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #fafafa; cursor: pointer; }
.reel-close:hover { background: #212127; }
.reel-modal video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 68dvh; background: #000; object-fit: contain; }
.reel-modal.is-portrait video { aspect-ratio: auto; height: 68dvh; }
.reel-modal-foot { display: grid; gap: 12px; padding: 16px 20px 20px; }
#app .reel-modal-foot p { margin: 0; color: #b4b4bb; }
#app .reel-book { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; background: #423be5; color: #fff; text-decoration: none; }
#app .reel-book:hover { background: #5750ea; }

@media (min-width: 720px) {
  #app .manto-reel .wrap { gap: 32px; }
  .reel-rail { margin: 0; padding-inline: 0; gap: 16px; scroll-padding-inline: 0; }
  .reel-rail li { width: calc((100% - 32px) / 2.4); }
  .reel-nav { display: flex; }
  .reel-modal-foot { grid-template-columns: 1fr auto; align-items: center; }
}
/* Title and intro sit side by side only when the title fits on one line. */
@media (min-width: 960px) { .reel-head { grid-template-columns: 1fr auto; align-items: end; gap: 32px; } }
@media (min-width: 1101px) { .reel-rail li { width: calc((100% - 64px) / 4.25); } }
@media (prefers-reduced-motion: reduce) { .reel-thumb img, .reel-glyph, .reel-all span { transition: none; } .reel-tile:hover .reel-thumb img { transform: none; } }
