/* Metis · Insights index (2026-09-29)
   Plain-CSS port of the "Projects / Case Studies" spec: floating squares header,
   2x2 cards with pixel-dissolve hover and magnetic squares, footer with marquee.
   Behaviour lives in insights-index.js. Easing everywhere: cubic-bezier(0.22,1,0.36,1). */

body.ins-page { background: #fff; }
body.ins-page .grain { display: none; }

.ix { --ease: cubic-bezier(0.22, 1, 0.36, 1); position: relative; overflow-x: clip; background: #fff; color: #000;
  font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
html[lang^="zh"] .ix { font-family: 'DM Sans', 'Songti SC', 'Noto Serif SC', 'SimSun', serif; line-break: strict; }
.ix *, .ix *::before, .ix *::after { box-sizing: border-box; }
.ix a { color: inherit; text-decoration: none; }

@keyframes marqueeProjects { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-projects { animation: marqueeProjects 28s linear infinite; }
.marquee-projects:hover { animation-play-state: paused; }
@keyframes ixBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.ix__pad { padding-left: 24px; padding-right: 24px; }
@media (min-width: 640px) { .ix__pad { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .ix__pad { padding-left: 64px; padding-right: 64px; } }
.ix__max { max-width: 80rem; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- top */
.ix__top { position: relative; padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 1024px) { .ix__top { padding-top: 64px; } }
/* Metis logo above the badge (added 30 Sep: ties the page back to the rest of the site) */
.ix__home { display: block; width: 150px; margin: 0 auto 72px; }
.ix__home img { display: block; width: 100%; height: auto; }
@media (min-width: 1024px) { .ix__home { width: 170px; margin-bottom: 88px; } }
.ix__float { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.ix__fsq { position: absolute; will-change: transform; }
.ix__fsq i { display: block; width: 100%; height: 100%; background: #000;
  animation: ixBob var(--dur) ease-in-out var(--delay) infinite; }

.ix__head { position: relative; text-align: center; opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ix__head.is-in { opacity: 1; transform: none; }
.ix__badge { display: inline-block; margin-bottom: 20px; background: #000; color: #fff;
  padding: 6px 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.025em; }
.ix__h { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.025em; margin: 0; }
html[lang^="zh"] .ix__h { letter-spacing: 0; font-weight: 400; }
.ix__h .mute { color: rgba(0,0,0,.4); }
.ix__lang { display: inline-block; margin-top: 18px; font-size: 13px; color: rgba(0,0,0,.6);
  border-bottom: 1px solid rgba(0,0,0,.2); padding-bottom: 1px; }
.ix__lang:hover { color: #000; border-color: #000; }

/* ---------------------------------------------------------------- cards */
.ix__cards { padding-bottom: 64px; }
.ix__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .ix__grid { grid-template-columns: 1fr 1fr; } }

.ixc { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #111;
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease) var(--rd, 0s), transform .7s var(--ease) var(--rd, 0s); }
.ixc.is-in { opacity: 1; transform: none; }
.ixc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.ixc__pxw { position: absolute; inset: 0; opacity: .8; pointer-events: none; } /* bg-black/80, applied once so overlapping blocks leave no seams */
.ixc__px { position: absolute; background: #000; transform: scale(0); opacity: 0;
  transition: transform .25s var(--ease) var(--do), opacity .25s var(--ease) var(--do); }
.ixc.is-hover .ixc__px { transform: scale(1); opacity: 1; transition-delay: var(--di); }

.ixc__sq { position: absolute; background: #000; will-change: transform; transition: background-color .3s var(--ease); }
.ixc.is-hover .ixc__sq { background: rgba(255,255,255,.35); }

.ixc__sum { position: absolute; left: 24px; right: 64px; top: 22px; z-index: 15; color: #fff;
  font-size: 15px; line-height: 1.6; opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.ixc.is-hover .ixc__sum { opacity: 1; transform: none; transition-delay: .28s; }
.ixc__read { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
@media (max-width: 520px) { .ixc__sum { font-size: 13.5px; left: 16px; top: 16px; } }

.ixc__plus { position: absolute; right: 16px; top: 16px; z-index: 10; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 12px; }
.ixc__plate { position: absolute; left: 0; bottom: 0; z-index: 20; max-width: 70%; background: #fff; padding: 10px 16px 12px; }
.ixc__t { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.25; color: #000; margin: 0; }
html[lang^="zh"] .ixc__t { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.ixc__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12px; }
.ixc__cat { color: rgba(0,0,0,.6); }
.ixc__yr { color: #000; font-weight: 500; }

/* ---------------------------------------------------------------- footer area */
.ix__foot { padding-bottom: 24px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .ix__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.ix__left { max-width: 28rem; }
.ix__plus { margin-bottom: 16px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 1px solid rgba(0,0,0,.2); font-size: 12px; color: #000; }
.ix__p { font-size: 14px; line-height: 1.7; color: rgba(0,0,0,.6); margin: 0; }
.ix__cta { margin-top: 24px; display: flex; align-items: flex-end; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.ix__cta-l { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(0,0,0,.2); background: #000; color: #fff;
  padding: 8px 12px; font-size: 16px; font-weight: 500; transition: background-color .2s; }
.ix__cta:hover .ix__cta-l { background: rgba(0,0,0,.85); }
.ix__cta-a { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #000;
  margin-bottom: 24px; transition: all .3s var(--ease); }
.ix__cta:hover .ix__cta-a { margin-bottom: 36px; }

.ix__right { flex: 1; min-width: 0; max-width: 100%; overflow: hidden; border-top: 1px solid rgba(0,0,0,.1); margin-top: 32px; }
@media (min-width: 768px) { .ix__right { margin-left: 48px; margin-top: 0; border-top: 0; } }
.ix__mq { overflow: hidden; padding: 20px 0; }
.ix__track { display: flex; width: max-content; }
.ix__logo { display: flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 0 32px; }
.ix__logo span { white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: .025em; color: rgba(0,0,0,.8); }
.ix__spacer { height: 48px; }

/* newsletter + site footer under the section */
.ix-after { background: #fff; padding-bottom: 40px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-projects, .ix__fsq i { animation: none; }
  .ix__head, .ixc { opacity: 1; transform: none; transition: none; }
}
