/* The homepage is a spatial playground, not a reskin of the old poster deck. */
:root { --z-orbit-core: 2; --z-orbit-copy: 12; --z-orbit-controls: 14; }
.home-page { --home-header: 88px; }
.home-page .playground { min-height: 0; max-height: none; height: calc(100svh - var(--home-header)); height: calc(100dvh - var(--home-header)); }
.playground { position: relative; isolation: isolate; min-height: 760px; height: calc(100svh - 88px); max-height: 1040px; overflow: hidden; background: radial-gradient(ellipse at 65% 44%,#25313c 0,#11181f 36%,#090e12 72%); border-bottom: 1px solid #37434d; }
.space-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.playground-intro { position: absolute; left: var(--space); top: 18%; width: 360px; z-index: var(--z-orbit-copy); pointer-events: none; }
.playground-kicker { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #b7c9cd; }
.playground-kicker>span { color: #d7fca6; font-size: 23px; }
.playground h1 { font-size: clamp(48px,5.2vw,76px); line-height: 1.24; font-weight: 650; letter-spacing: -.04em; margin: 22px 0; }
.playground h1 em { font-style: normal; color: #d7fca6; white-space: nowrap; }
.playground-description { color: #b4c0c8; font-size: 14px; line-height: 1.95; }
.orbit-space { position: absolute; inset: 0 0 230px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.orbit-space:active { cursor: grabbing; }
.orbit-space:focus-visible { outline-offset: -8px; }
.gravity-core { position: absolute; width: 340px; height: 340px; left: 63%; top: 51%; transform: translate(-50%,-50%); z-index: var(--z-orbit-core); pointer-events: none; }
.core-canvas { width: 100%; height: 100%; position: relative; pointer-events: none; }
.core-fallback { position: absolute; inset: 16%; border-radius: 41% 59% 44% 56%; background: conic-gradient(from 30deg,#eef8f5,#6b7b86 8%,#effff5 15%,#48515e 25%,#131924 35%,#d7fca6 48%,#f3fff5 55%,#566874 66%,#14222d 78%,#dfede3 90%); transform: rotate(-28deg); box-shadow: inset -12px -20px 24px #0009,0 0 50px #cdeab713; }
.core-fallback::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: #131c24; box-shadow: 5px -6px 10px #e5fff18c,inset 5px 6px 14px #000; }
.gravity-core.is-rendered .core-fallback { visibility: hidden; }
.core-hit { position: absolute; inset: 27%; border-radius: 50%; background: transparent; pointer-events: auto; cursor: pointer; display: grid; place-items: center; }
.core-hit>span { opacity: 0; background: #091219d9; color: #e4ffc5; border: 1px solid #91a993; padding: 8px 13px; border-radius: 50%; font-size: 12px; transition: opacity .2s; }
.core-hit:hover>span,.core-hit:focus-visible>span { opacity: 1; }
.planet-field { position: absolute; inset: 0; pointer-events: none; }
.planet { position: absolute; left: 0; top: 0; width: 170px; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translate(-50%,-50%); pointer-events: auto; cursor: pointer; -webkit-user-drag: none; will-change: transform; }
.planet-shell { width: 100%; aspect-ratio: 1; border-radius: 50%; position: relative; padding: 8px; background: conic-gradient(from 25deg,#d9f6fa,#50616c 8%,#28353f 25%,#090e12 47%,#788584 63%,#d7fca6 72%,#27313a 85%,#d9f6fa); box-shadow: 0 15px 30px #0006,0 0 0 1px #ffffff1a; transition: box-shadow .3s; }
.planet-shell::after { content: ''; position: absolute; inset: 5px; border: 1px solid #0009; border-radius: inherit; box-shadow: inset 0 0 20px #0007; pointer-events: none; }
.planet img { position: absolute; inset: 8px; height: calc(100% - 16px); width: calc(100% - 16px); object-fit: cover; border-radius: inherit; pointer-events: none; filter: saturate(.85); transition: filter .35s; }
.planet-mint img { object-position: 50% 48%; }
.planet-lime img { object-position: 83% center; }
.planet-peach img { object-position: 50% center; }
.planet-glint { position: absolute; inset: 8px; border-radius: 50%; background: linear-gradient(130deg,#ffffff30,transparent 35% 70%,#0005); pointer-events: none; }
.planet-label { white-space: nowrap; display: flex; align-items: center; gap: 15px; color: #d6e0e6; font-size: 13px; line-height: 1.4; background: #0a111ad9; padding: 7px 11px; border: 1px solid #60707877; border-radius: 30px; }
.planet-label>span { color: #d7fca6; }
.planet-label { transform: scale(calc(1 / var(--planet-scale,1))); }
.planet.is-active .planet-shell { box-shadow: 0 18px 45px #0009,0 0 0 1px #d7fca680,0 0 22px #d7fca617; }
.planet:hover img { filter: saturate(1.12); }
.planet:hover .planet-label,.planet:focus-visible .planet-label { background: #d7fca6; color: #15221c; border-color: #d7fca6; }
.planet:hover .planet-label>span,.planet:focus-visible .planet-label>span { color: #15221c; }
.planet:focus-visible { outline: none; }
.planet:focus-visible .planet-shell { outline: 3px solid #e2ffb8; outline-offset: 6px; }
.orbit-focus { position: absolute; left: 63%; bottom: 122px; transform: translateX(-50%); text-align: center; min-width: 260px; z-index: var(--z-orbit-copy); }
.orbit-position { font: 700 11px Syne,sans-serif; color: #b0c99c; }
.orbit-focus>a { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 9px; }
.orbit-focus strong { font-size: 24px; font-weight: 500; }
.orbit-focus>p { color: #a9bbc6; font-size: 12px; margin-top: 5px; }
.orbit-bottom { position: absolute; bottom: 26px; left: var(--space); right: var(--space); display: flex; align-items: center; justify-content: center; gap: 22px; z-index: var(--z-orbit-controls); }
.orbit-picker { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.orbit-picker button { background: #172029; color: #b0bec6; border: 1px solid #43515a; border-radius: 100px; display: flex; gap: 8px; align-items: center; min-height: 42px; padding: 8px 16px; font-size: 12px; transition: background .2s,color .2s; }
.orbit-pick-dot { width: 5px; height: 5px; border-radius: 50%; background: #70828b; }
.orbit-picker button[aria-pressed=true] { color: #13221a; background: #d7fca6; border-color: #e1ffc0; }
.orbit-picker button[aria-pressed=true] .orbit-pick-dot { background: #263e26; }
.orbit-step { width: 44px; height: 44px; flex-shrink: 0; background: transparent; border: 1px solid #60737f; border-radius: 50%; color: #d7fca6; font-size: 20px; }
.orbit-step:hover { background: #263b33; }
.playground.is-dragging .planet { cursor: grabbing; }
.playground.is-paused .core-hit>span { display: none; }
/* Below the universe, the catalogue becomes an alternating image-led gallery. */
.work-grid:not(.is-list) { column-gap: 7vw; row-gap: 65px; }
.work-grid:not(.is-list) .work:nth-child(even) { padding-top: 100px; }
.work-image { border-radius: 3px; }
.work-image>img { transform: perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) scale(1.035); }
.work-link:hover .work-image>img { transform: perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) scale(1.08); }
.work-copy h3 { font-size: 30px; }
.about-visual { margin: 0; width: 100%; overflow: hidden; border-radius: 4px; }
.about-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 56% center; }
.about-strip { grid-template-columns: 1.1fr 1fr; gap: 6vw; }
.detail-visual { transform: perspective(1500px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,-4deg)); }
.detail-visual:hover { transform: perspective(1500px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); }
.detail-copy { transform: translateY(var(--copy-drift,0px)); }
.next-project>a:not(.text-link) { padding-block: 20px; }
.next-project>a>span { transition: transform .5s var(--ease); }
.next-project>a:hover>span { transform: translate(12px,-12px); }
/* Native navigation stays native. Unsupported browsers simply change pages. */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-group(*) { animation-duration: .75s; animation-timing-function: cubic-bezier(.22,1,.36,1); }
::view-transition-old(root) { animation: space-exit .5s both; }
::view-transition-new(root) { animation: space-enter .7s both; }
::view-transition-group(project-art) { animation-duration: .85s; z-index: 1; }
::view-transition-old(project-art),::view-transition-new(project-art) { height: 100%; object-fit: cover; mix-blend-mode: normal; border-radius: 12px; }
::view-transition-new(project-art) { animation: art-arrive .85s both; }
::view-transition-old(site-header),::view-transition-new(site-header) { animation: none; }
@keyframes space-exit { to { opacity: 0; transform: scale(1.12); filter: blur(9px); } }
@keyframes space-enter { from { opacity: 0; transform: scale(.91) translateY(25px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes art-arrive { from { clip-path: circle(49%); } to { clip-path: circle(75%); } }
html.motion-off::view-transition-group(*),html.motion-off::view-transition-old(*),html.motion-off::view-transition-new(*) { animation: none!important; }
@media(min-width:1600px) { .playground-intro { top: 23%; }.planet { width: 195px; }.gravity-core { width: 390px; height: 390px; } }
@media(max-width:1100px) {
  .playground { min-height: 700px; }
  .playground-intro { width: 280px; top: 17%; }
  .playground h1 { font-size: 55px; }
  .planet { width: 145px; }
  .gravity-core { width: 285px; height: 285px; left: 65%; }
  .orbit-picker { gap: 6px; }.orbit-picker button { font-size: 10px; padding-inline: 11px; }
  .orbit-focus { left: 65%; }
}
@media(max-width:1000px) {
  .home-page { --home-header: 76px; }
  .playground { min-height: 740px; height: calc(100svh - 76px); }
  .playground-intro { top: 28px; left: 28px; width: calc(100% - 56px); }
  .playground h1 { font-size: 48px; line-height: 1.15; margin-block: 13px; }
  .playground h1 br { display: none; }
  .playground-description { font-size: 12px; }.playground-description br { display: none; }
  .orbit-space { top: 175px; bottom: 235px; }
  .gravity-core { left: 50%; top: 47%; width: 270px; height: 270px; }
  .planet { width: 150px; }
  .orbit-focus { left: 50%; bottom: 92px; }
  .orbit-bottom { bottom: 22px; left: 22px; right: 22px; gap: 16px; }
  .orbit-picker button { font-size: 0; padding: 0; width: 28px; min-height: 28px; border: none; background: transparent; justify-content: center; }
  .orbit-picker button>span:last-child { display: none; }
  .orbit-pick-dot { width: 7px; height: 7px; }
  .orbit-picker button[aria-pressed=true] { background: #344738; }
  .orbit-picker button[aria-pressed=true] .orbit-pick-dot { background: #d7fca6; }
  .orbit-step { width: 40px; height: 40px; }
  .orbit-position { font-size: 10px; }
  .orbit-focus strong { font-size: 22px; }
  .orbit-focus>p { font-size: 11px; }
  .work-grid:not(.is-list) .work:nth-child(even) { padding-top: 45px; }
}
@media(max-width:500px) {
  .playground { min-height: 650px; max-height: none; height: calc(100svh - 70px); }
  .playground-intro { top: 23px; left: 22px; width: calc(100% - 44px); }
  .playground-kicker { font-size: 11px; }.playground-kicker>span { font-size: 17px; }
  .playground h1 { font-size: clamp(34px,9.4vw,46px); letter-spacing: -.035em; }
  .playground-description { max-width: 285px; font-size: 11px; }
  .orbit-space { top: 180px; bottom: 200px; }
  .planet { width: 112px; gap: 8px; }.planet-shell { padding: 5px; }.planet-glint { inset: 5px; }.planet img { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
  .planet-label { font-size: 11px; gap: 8px; padding: 6px 8px; }
  .gravity-core { width: 220px; height: 220px; }
  .orbit-focus { bottom: 76px; }
  .orbit-bottom { bottom: 14px; }
  .orbit-picker { gap: 3px; }
  .orbit-picker button { width: 26px; }
  .orbit-step { width: 38px; height: 38px; }
  .work-grid:not(.is-list) .work:nth-child(even) { padding-top: 0; }
  .work-grid:not(.is-list) { row-gap: 34px; }
  .work-copy h3 { font-size: 25px; }
  body:has(.playground) .preview-note { bottom: auto; top: 77px; right: 9px; left: auto; }
}
@media(max-width:700px) { .about-strip { grid-template-columns: 1fr; gap: 30px; }.about-visual img { aspect-ratio: 3 / 2; } }
@media(max-width:700px) { .home-page { --home-header: 70px; } }
/* Short phones keep the title, six portals and navigation in the same screen. */
@media(max-width:1000px) and (max-height:700px) {
  .home-page .playground-intro { top: 14px; }
  .home-page .playground h1 { font-size: 32px; margin-block: 9px; }
  .home-page .playground-description { font-size: 10px; line-height: 1.65; }
  .home-page .orbit-space { top: 142px; bottom: 175px; }
  .home-page .planet { width: 94px; }
  .home-page .gravity-core { width: 190px; height: 190px; }
  .home-page .orbit-focus { bottom: 65px; }
  .home-page .orbit-focus strong { font-size: 20px; }
  .home-page .orbit-focus>a { margin-top: 4px; }
  .home-page .orbit-bottom { bottom: 10px; }
}
@media(hover:none) { .core-hit>span { opacity: .85; font-size: 10px; padding: 5px; } }
@media(prefers-reduced-motion:reduce) {
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) { animation: none!important; }
  .planet { will-change: auto; }.work-image>img,.work-link:hover .work-image>img,.detail-visual,.detail-visual:hover,.detail-copy { transform: none; }
}
:root:not(.js) .orbit-bottom,:root:not(.js) .orbit-focus,:root:not(.js) .core-hit { display: none; }
:root:not(.js) .orbit-space { inset: 220px 22px 30px; }
:root:not(.js) .gravity-core { display: none; }
:root:not(.js) .planet-field { display: grid; grid-template-columns: repeat(3,1fr); align-items: center; justify-items: center; gap: 20px; }
:root:not(.js) .planet { position: static; transform: none; width: min(150px,20vw); }
:root:not(.js) .playground-intro { top: 25px; width: auto; }
:root:not(.js) .playground h1 { font-size: 40px; margin-block: 10px; }
:root:not(.js) .playground h1 br { display: none; }
@media(max-width:500px) { :root:not(.js) .planet-field { grid-template-columns: repeat(2,1fr); }:root:not(.js) .planet { width: 100px; }:root:not(.js) .playground h1 { font-size: 32px; } }
/* Without JS, keep every entry accessible instead of clipping the static grid. */
:root:not(.js) .home-page .playground { min-height: 650px; }
