/* The concept project tiles on the homepage (24 Nov 2026). The homepage does
   not load pages.css, so these are the tile rules copied from it: change a
   tile there and here. Every colour is a token from next.css. */
.concepts { padding-block: clamp(80px, 11vw, 190px) 0; }
.concepts__more { display: flex; margin-top: clamp(32px, 4vw, 60px); }
.grid { list-style: none; margin: clamp(28px, 3.4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; column-gap: var(--pad); row-gap: clamp(36px, 4vw, 64px); align-items: start; }
.tile { grid-column: span 2; }
.tile--big { grid-column: span 4; grid-row: span 2; }
.tile--big-r { grid-column: 3 / span 4; }
.tile--l { grid-column: 1 / span 2; }
.grid.is-filtered .tile { grid-column: span 2; grid-row: auto; }
.tile[hidden] { display: none; }
.tile a { display: block; color: inherit; }
.tile__img { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); }
.tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile a:hover .tile__img img, .case__next:hover .tile__img img { transform: scale(1.035); }
.tile__cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; align-items: baseline; padding-top: 12px; }
.tile__n { color: var(--ink-2); }
.tile__flag { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.tile__flag::before { content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tile__name { grid-column: 1; font-size: calc(clamp(34px, 3.6vw, 59px) * var(--ds)); line-height: 0.86; margin-top: 6px; text-wrap: balance; }
.tile--big .tile__name { font-size: calc(clamp(47px, 6.2vw, 104px) * var(--ds)); }
.grid.is-filtered .tile--big .tile__name { font-size: calc(clamp(34px, 3.6vw, 59px) * var(--ds)); }
.tile__line { grid-column: 1; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.4; color: var(--ink-2); }
.tile__go { grid-column: 2; grid-row: 2 / span 2; align-self: end; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.tile__go svg { width: 16px; height: 16px; }
.tile a:hover .tile__go { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tile__name { font-family: var(--font-disp); font-variation-settings: 'wght' 86, 'wdth' 62; font-weight: 400; text-transform: uppercase; letter-spacing: 0.004em; }
@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .tile, .tile--big { grid-column: auto; grid-row: auto; }
  .tile__name, .tile--big .tile__name { font-size: calc(clamp(40px, 11vw, 68px) * var(--ds)); }
  .concepts__more .btn { width: 100%; justify-content: space-between; }
}
/* The tiles rise in as they enter the screen. CSS only (a view timeline), so
   the homepage's script is not involved; browsers without it, and people who
   ask for less motion, simply see the tiles. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .concepts .tile { animation: tile-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes tile-in { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
  }
}
