/* Musionic — Insights home (spiral → grid). Brand palette and fonts only. Loaded after insights.css. */
body.land { --land-bg: #F4F1EA; background: radial-gradient(130% 90% at 50% 0%, #FAF8F3 0%, #F4F1EA 50%, #ECE8DF 100%) fixed; color: var(--onyx); overflow-x: hidden; }
.land .mono { font-size: .64rem; letter-spacing: .08em; }

/* header: logo left, language, Let's talk, Menu */
.hd { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 2.6vw, 34px); pointer-events: none;
  background: linear-gradient(rgba(244,241,234,.92), rgba(244,241,234,.72)); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.hd > * { pointer-events: auto; }
.hd .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 600 .84rem/1 var(--sans); letter-spacing: .02em; }
.hd .logo img { width: 16px; transition: transform .5s var(--spring); } .hd .logo:hover img { transform: rotate(-12deg) scale(1.12); }
.hd .logo sup { font-size: .5em; }
.hd .r { display: flex; align-items: center; gap: 6px; }
.hd .lng { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--onyx); font: 500 .58rem/1 var(--mono); text-decoration: none; transition: transform .5s var(--spring), background .25s, color .25s; }
.hd .lng:hover { transform: rotate(-180deg); background: var(--onyx); color: var(--off); }
.pill { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--onyx); font: 500 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: transparent; color: var(--onyx); cursor: pointer; transition: color .35s; }
.pill.dark { background: var(--onyx); color: var(--off); }
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--azure); transform: translateY(101%); transition: transform .45s var(--ease); }
.pill:hover::before { transform: none; } .pill:hover { color: var(--off); border-color: var(--azure); }
.pill .bars { display: grid; gap: 2px; } .pill .bars b { display: block; width: 9px; height: 1.2px; background: currentColor; transition: width .3s; }
.pill:hover .bars b:last-child { width: 5px; }
.pill.big { height: 46px; padding: 0 22px; font-size: .72rem; }
.menu { position: fixed; z-index: 49; top: 62px; right: clamp(16px, 2.6vw, 34px); display: grid; min-width: 200px; padding: 8px; background: var(--off-2); border: 1px solid var(--onyx); border-radius: 14px; transform-origin: top right; transform: scale(.92); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .2s; }
.menu.open { transform: none; opacity: 1; pointer-events: auto; }
.menu a { padding: 10px 12px; border-radius: 9px; text-decoration: none; font: 500 1rem/1 var(--sans); transition: background .2s, color .2s, padding .3s var(--spring); }
.menu a:hover { background: var(--azure); color: var(--off); padding-left: 18px; } .menu a[aria-current] { background: var(--onyx); color: var(--off); }

/* the pinned stage */
.stage { position: relative; height: 680vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lines path { fill: none; stroke: rgba(10,10,11,.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.title { position: absolute; left: 0; right: 0; top: calc(9% + 40px); text-align: center; pointer-events: none; padding: 0 16px; }
.title h1 { margin: 0; display: flex; justify-content: center; flex-wrap: wrap; column-gap: .24em; font: 300 clamp(3rem, 8.6vw, 10rem)/.92 var(--sans); letter-spacing: -.045em; }
.title h1 > span:not(.sr-only) { display: inline-block; will-change: transform; }
.title h1 > span > span { display: inline-block; }
.title h1 .a { text-transform: uppercase; letter-spacing: -.01em; }
.title h1 .a i { font: italic 400 .8em/1 var(--serif); color: var(--azure); margin-left: .2em; }
.title h1 .b { font-weight: 800; }
.title .sub { max-width: 46rem; margin: clamp(16px, 2.4vh, 28px) auto 0; will-change: transform, opacity; }
.title .lede { margin: 0; font: 400 clamp(1.02rem, 1.45vw, 1.32rem)/1.45 var(--sans); color: rgba(10,10,11,.78); text-wrap: balance; }
.title .status { margin: 14px 0 0; color: rgba(10,10,11,.55); }
.title .status b { font-weight: 500; color: var(--azure); }
.land .title .a > span { animation: inL 1.6s cubic-bezier(.16,1,.3,1) both; } .land .title .b > span { animation: inR 1.6s cubic-bezier(.16,1,.3,1) .06s both; }
.land .title .sub { animation: fadeUp 1s .75s both; }
@keyframes inL { from { transform: translateX(-70vw); } } @keyframes inR { from { transform: translateX(70vw); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the final grid of every article: 5 × 4 on wide screens, 4 × 5 on tablets, 3 columns on phones; always fits the screen height */
.grid { --cols: 5; --rows: 4; --gap: 10px; position: absolute; left: 50%; top: calc(50% + 26px); transform: translate(-50%, -50%);
  width: min(90vw, calc((100svh - 150px - (var(--rows) - 1) * var(--gap)) / var(--rows) * 1.6 * var(--cols) + (var(--cols) - 1) * var(--gap)));
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); }
.card { position: relative; display: block; aspect-ratio: 1.6; text-decoration: none; opacity: 0; pointer-events: none; }
.card.on { opacity: 1; pointer-events: auto; }
.card img { width: 100%; height: 100%; display: block; transition: transform .55s var(--ease), box-shadow .55s, opacity .4s, filter .4s; }
.card.soon img { opacity: .45; }   /* already drawn grey: identical to the 3D card it replaces */
.card .tip { position: absolute; left: 8px; bottom: 8px; padding: 6px 9px; border-radius: 999px; background: var(--onyx); color: var(--off); font: 500 .56rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--spring); pointer-events: none; white-space: nowrap; }
.card.soon .tip { background: var(--off-2); color: var(--onyx); border: 1px solid rgba(10,10,11,.2); }
.card.on:hover .tip, .card.on:focus-visible .tip { opacity: 1; transform: none; }
a.card.on:hover img, a.card.on:focus-visible img { transform: translateY(-6px) scale(1.03); box-shadow: 0 26px 44px -20px rgba(10,10,11,.5); }
.card.soon.on:hover img { opacity: .72; }
.hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: rgba(10,10,11,.6); transition: opacity .4s; }
.hint i { width: 1px; height: 26px; background: rgba(10,10,11,.25); position: relative; overflow: hidden; }
.hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--onyx); animation: drop 1.6s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes drop { to { top: 100%; } }
/* static fallback (no WebGL / reduced motion): no pinned scroll, the grid sits under the title */
body.static .stage { height: auto; }
body.static .sticky { position: relative; height: auto; overflow: visible; padding: 130px 0 40px; }
body.static .title { position: relative; top: 0; }
body.static .grid { position: relative; left: auto; top: auto; transform: none; margin: 40px auto 0; width: min(92vw, 1240px); }
body.static .hint { display: none; }

/* every article, as a readable list (for phones, search engines and screen readers) */
.cat-l { max-width: 1180px; margin: 0 auto; padding: clamp(80px, 12vh, 140px) clamp(16px, 4vw, 48px) 40px; }
.cat-l h2 { margin: 0 0 22px; font: 300 clamp(2.2rem, 5vw, 4.4rem)/1 var(--sans); letter-spacing: -.04em; }
.cat-l ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--onyx); }
.cat-l li > * { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) 11rem 6rem; gap: 1rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid rgba(10,10,11,.14); text-decoration: none; }
.cat-l .tt b { font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; transition: color .3s; }
.cat-l .tt .d { display: block; margin-top: 4px; color: rgba(10,10,11,.62); font-size: .95rem; line-height: 1.45; }
.cat-l .mono { color: rgba(10,10,11,.55); }
.cat-l li a::before { content: ""; position: absolute; left: -16px; top: 22%; bottom: 22%; width: 6px; background: var(--acc); transform: scaleY(0); transition: transform .35s var(--spring); }
.cat-l li[style*="F4F1EA"] a::before { background: var(--onyx); }
.cat-l li a:hover::before { transform: scaleY(1); }
.cat-l li a:hover b { color: var(--azure); }
.cat-l li.is-soon b { font-weight: 400; color: rgba(10,10,11,.5); }
.cta-l { text-align: center; padding: clamp(60px, 10vh, 110px) 16px clamp(70px, 12vh, 130px); }
.cta-l h2 { margin: 0; font: 800 clamp(2.2rem, 5.6vw, 5.2rem)/.95 var(--sans); letter-spacing: -.045em; }
.cta-l p { max-width: 34rem; margin: 16px auto 26px; color: rgba(10,10,11,.7); font-size: 1.08rem; }

@media (max-width: 1099px) { .grid { --cols: 4; --rows: 5; --gap: 8px; } }
@media (max-width: 699px) {
  .grid { --cols: 3; --rows: 7; --gap: 6px; top: calc(50% + 30px); }
  .title { top: calc(11% + 34px); } .title h1 { font-size: clamp(2.6rem, 13vw, 4rem); row-gap: .05em; }
  .title .lede { font-size: 1rem; } .hd .pill.dark { display: none; }
  .cat-l li > * { grid-template-columns: 2.4rem minmax(0, 1fr); } .cat-l li > * > .mono:nth-child(n+3) { grid-column: 2; }
  .card .tip { font-size: .5rem; padding: 4px 6px; left: 4px; bottom: 4px; }
}
@media (hover: none) { .card .tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .land .title .a > span, .land .title .b > span, .land .title .sub { animation: none; } }
