/* projects.inspairedstudio.com — a zero-gravity playground and four projects on glowing screens */

/* ---------------------------------------------------------------- hero */
.pj-hero { padding: clamp(28px, 3.6vw, 54px) 0 clamp(60px, 7vw, 110px); }
.pj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(30px, 5vw, 80px); align-items: center; }
.pj-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.6rem); margin-bottom: 26px; }
html[lang="de"] .pj-hero h1 { font-size: clamp(2.3rem, 4vw, 4rem); }

/* the playground: Bauhaus shapes floating under a spotlight; push them, throw them, they bump into each other */
.playground { position: relative; height: clamp(360px, 38vw, 500px); overflow: hidden; touch-action: pan-y; border-radius: 28px; isolation: isolate;
  background: radial-gradient(60% 70% at 50% -10%, rgba(25, 195, 154, .22), transparent 70%), radial-gradient(90% 60% at 50% 120%, rgba(0, 0, 0, .6), transparent 70%),
    url('/assets/art/graphite.webp') center / cover, #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 30px 80px -40px rgba(25, 195, 154, .4), 0 40px 80px -40px rgba(0, 0, 0, .95); }
.playground::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: conic-gradient(from 160deg at 50% -12%, transparent 0deg, rgba(200, 255, 236, .06) 10deg, rgba(220, 255, 244, .1) 20deg, rgba(200, 255, 236, .06) 30deg, transparent 40deg); }
.pg-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(25, 195, 154, .07)); pointer-events: none; }
.pg-hint { position: absolute; left: 22px; bottom: 18px; margin: 0; font: italic 400 .95rem/1 var(--display); letter-spacing: -.01em; color: var(--ink-3); pointer-events: none; }
.pg-shape { position: absolute; left: 0; top: 0; will-change: transform; cursor: grab; touch-action: none; }
.pg-shape.grab { cursor: grabbing; }
.pg-shape::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -26%; height: 14%; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(8px); z-index: -1; }
.pg-circle { width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #7d96ff, #3557ff 42%, #1b2fa8 100%); box-shadow: 0 0 40px rgba(53, 87, 255, .45), inset -8px -10px 20px rgba(0, 0, 0, .35); }
.pg-circle2 { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #9cf28c, #3fcf2a 45%, #1f7a12); box-shadow: 0 0 30px rgba(63, 207, 42, .4), inset -5px -6px 12px rgba(0, 0, 0, .35); }
.pg-square { width: 96px; height: 96px; border-radius: 6px; background: linear-gradient(145deg, #ff7a6b, #ef3b2c 45%, #a81e12); box-shadow: 0 0 36px rgba(239, 59, 44, .4), inset -6px -8px 16px rgba(0, 0, 0, .3); }
.pg-square2 { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(145deg, #ffe96b, #ffd60a 45%, #b39400); box-shadow: 0 0 26px rgba(255, 214, 10, .4), inset -4px -5px 10px rgba(0, 0, 0, .25); }
.pg-bar { width: 168px; height: 16px; border-radius: 9px; background: linear-gradient(180deg, #f6f3ec, #c9c3b6); box-shadow: 0 0 18px rgba(255, 255, 255, .25); }
.pg-ring { width: 100px; height: 100px; border-radius: 50%; border: 17px solid #ffd60a; box-shadow: 0 0 34px rgba(255, 214, 10, .45), inset 0 0 0 1px rgba(0, 0, 0, .2); }
.pg-tri { width: 104px; height: 92px; background: linear-gradient(160deg, #ff8fc4, #f2479e 50%, #a81c62); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 0 18px rgba(242, 71, 158, .5)); }
.pg-dot { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8ff5d8, #19c39a 50%, #0b6d55); box-shadow: 0 0 22px rgba(25, 195, 154, .6); }
.pg-half { width: 110px; height: 55px; border-radius: 110px 110px 0 0; background: linear-gradient(180deg, #a98bff, #7440d6 60%, #4a2296); box-shadow: 0 0 30px rgba(116, 64, 214, .45); }
@media (max-width: 900px) { .pj-grid { grid-template-columns: minmax(0, 1fr); } .playground { height: 380px; } }

/* ---------------------------------------------------------------- the projects */
.proj-list { padding: 0 0 var(--sec); }
.proj { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 6vw, 96px); align-items: center; padding: clamp(50px, 7vw, 110px) 0; border-top: 1px solid var(--line); }
.proj.flip .monitor { order: 2; }
.monitor { --tx: 0deg; --ty: 0deg; position: relative; display: block; padding: clamp(8px, 1vw, 14px); border-radius: 18px; text-decoration: none; perspective: 1400px;
  background: linear-gradient(180deg, #2e2e31, #161618); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .14), 0 60px 90px -40px rgba(0, 0, 0, .95), 0 0 120px -30px rgba(25, 195, 154, .3);
  transform: perspective(1400px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .5s var(--ease); }
.monitor::after { content: ""; position: absolute; left: 36%; right: 36%; top: 100%; height: 30px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, #2e2e31, #19191b 60%, #0e0e0f); box-shadow: 0 18px 24px -12px #000, inset 0 -1px 0 rgba(255, 255, 255, .08); z-index: -1; }
.screen { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 8px; background: #000; isolation: isolate; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease), filter .6s; }
.proj:hover .screen img { transform: scale(1.04); filter: saturate(1.15) brightness(.85); }
.glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(70% 60% at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 60%), linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 40%); mix-blend-mode: screen; }
.fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s; }
.proj:hover .fx, .proj:focus-within .fx { opacity: 1; }
.fx-tunnel i { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 16 / 10; translate: -50% -50%; border: 2px solid rgba(255, 230, 120, .9); border-radius: 6px; mix-blend-mode: screen;
  box-shadow: 0 0 18px rgba(255, 220, 60, .6), inset 0 0 18px rgba(255, 220, 60, .4); animation: tunnel 2.2s linear infinite; }
.fx-tunnel i:nth-child(2) { animation-delay: -.44s; } .fx-tunnel i:nth-child(3) { animation-delay: -.88s; } .fx-tunnel i:nth-child(4) { animation-delay: -1.32s; } .fx-tunnel i:nth-child(5) { animation-delay: -1.76s; }
@keyframes tunnel { 0% { transform: scale(.15); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(3.6); opacity: 0; } }
.fx-shapes i { position: absolute; mix-blend-mode: multiply; }
.fx-shapes i:nth-child(1) { left: 12%; top: 16%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #3557ff; animation: drift1 3s ease-in-out infinite alternate; }
.fx-shapes i:nth-child(2) { right: 14%; top: 26%; width: 18%; aspect-ratio: 1; background: #ef3b2c; animation: drift2 2.6s ease-in-out infinite alternate; }
.fx-shapes i:nth-child(3) { left: 30%; bottom: 16%; width: 40%; height: 4%; border-radius: 9px; background: #111; animation: drift3 2.2s ease-in-out infinite alternate; }
.fx-shapes i:nth-child(4) { left: 52%; top: 50%; width: 14%; aspect-ratio: 1; border-radius: 50%; border: 12px solid #ffd60a; animation: drift1 2.8s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(40%, 30%) rotate(30deg); } } @keyframes drift2 { to { transform: translate(-50%, 40%) rotate(-45deg); } } @keyframes drift3 { to { transform: translate(20%, -300%) rotate(-12deg); } }
.fx-pulse i { position: absolute; border-radius: 50%; mix-blend-mode: screen; filter: blur(2px); animation: pulse 1.2s ease-in-out infinite alternate; }
.fx-pulse i:nth-child(1) { left: 58%; top: 20%; width: 22%; aspect-ratio: 1; background: #3fcf2a; }
.fx-pulse i:nth-child(2) { left: 72%; top: 52%; width: 14%; aspect-ratio: 1; background: #f2479e; animation-delay: -.4s; }
.fx-pulse i:nth-child(3) { left: 48%; top: 58%; width: 10%; aspect-ratio: 1; background: #ffd60a; animation-delay: -.8s; }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.25); opacity: .95; } }
.fx-meter { display: flex; align-items: flex-end; gap: 1.1%; padding: 0 7% 7%; }
.fx-meter i { flex: 1; height: 34%; border-radius: 3px 3px 0 0; background: linear-gradient(0deg, #19c39a, #ffd60a 62%, #ff5d5d); transform-origin: bottom; opacity: .92; box-shadow: 0 0 10px rgba(25, 195, 154, .5);
  animation: meter .9s ease-in-out infinite alternate; }
.fx-meter i:nth-child(odd) { animation-duration: .66s; } .fx-meter i:nth-child(3n) { animation-duration: 1.1s; } .fx-meter i:nth-child(4n) { animation-delay: -.3s; } .fx-meter i:nth-child(5n) { animation-duration: .8s; animation-delay: -.5s; }
@keyframes meter { from { transform: scaleY(.25); } to { transform: scaleY(1.9); } }
.proj-copy .kicker { color: var(--jade); }
.proj-copy h2 { font-size: clamp(2.2rem, 3.9vw, 3.7rem); margin-bottom: 18px; }
.proj-copy > p { color: var(--ink-2); max-width: 32em; }
.proj-copy .actions { margin-top: 26px; }
.fan-note { margin: 30px 0 0; padding-top: 26px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-3); max-width: 62em; }
@media (max-width: 860px) {
  .proj { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .proj.flip .monitor { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .fx i { animation: none !important; } .monitor { transition: none; } }
