/* mantisvis.io v7 system (13 Nov 2026, Tiago via the Hub): the rounded symbol and Opposit sit on an ORTHOGONAL grid.
   Shared with the brand area (app/): load ../assets/css/v7-system.css and ../assets/js/v7-tiles.js. Class names follow
   the brand-panel session's: .v7-grid, .v7-tiles / .v7-tile, .v7-nav. Uses tokens.css. */
:root {
  --v7-off: #F3F3F1;                 /* our off-white (tokens --bg), never pure white */
  --v7-ink: #111111;
  --v7-tile: clamp(72px, 8.4vw, 132px);   /* one big square of the grid */
  --v7-line: rgba(243, 243, 241, .14);    /* hairline grid lines on dark */
  --v7-line-dark: rgba(17, 17, 17, .10);  /* on light */
  --v7-shadow: 0 18px 50px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .12);
  --v7-radius: 2px;                  /* frames are square now; only the symbol and type stay round */
  --v7-ease: cubic-bezier(.2, .7, .2, 1);
}

/* the grid: thin orthogonal lines on a box (reference 1). Add .v7-grid to any frame; .v7-grid.light on off-white */
.v7-grid { position: relative; }
.v7-grid::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(to right, var(--v7-line) 1px, transparent 1px), linear-gradient(to bottom, var(--v7-line) 1px, transparent 1px);
  background-size: var(--v7-tile) var(--v7-tile); }
.v7-grid.light::before { background-image: linear-gradient(to right, var(--v7-line-dark) 1px, transparent 1px), linear-gradient(to bottom, var(--v7-line-dark) 1px, transparent 1px); }
.v7-grid > * { position: relative; z-index: 1; }

/* the tile layer: a layer of big squares floating ABOVE the background photo, with a soft shadow.
   <div class="v7-tiles" data-cols="12" data-rows="6" data-shape="…">  (v7-tiles.js builds the tiles)
   Each .v7-tile has --o (its final opacity: 0.12 glass … 1 solid off-white) and --d (its delay, so they arrive one by one).
   Content that sits on the most opaque area goes in .v7-tiles-content. */
.v7-tiles { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 12), var(--v7-tile)); grid-auto-rows: var(--v7-tile);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .22)); pointer-events: none; }
.v7-tile { background: var(--v7-off); opacity: 0; transform: scale(.94); transition: opacity 280ms var(--v7-ease), transform 280ms var(--v7-ease), backdrop-filter 280ms; }
.v7-tile.v7-glass { background: rgba(243, 243, 241, .16); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); }
.v7-tiles.in .v7-tile { opacity: var(--o, 1); transform: none; transition-delay: var(--d, 0ms); }
.v7-tiles-content { position: absolute; z-index: 2; pointer-events: auto; color: var(--v7-ink); }

/* the only fully filled surface: the top menu bar (dark is fine) */
.v7-nav { background: #0d0d0c !important; border-bottom: 1px solid rgba(243, 243, 241, .10); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.v7-nav::before, .v7-nav::after { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .v7-tile, .v7-tiles.in .v7-tile { transition: none !important; transition-delay: 0ms !important; }
}
