/* Glass geometry and motion. All illustrations remain code-only and editable. */
:root{--ice:#8de3e6;--grid-line:#c6f6850c}
html[data-theme="light"]{--ice:#31868d;--grid-line:#536d4312}
.hero{position:relative;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0 -56px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 85% 33%,#9bd77a0c,transparent 46%)}
h1 em,h2 em{font-family:'Manrope',sans-serif;font-style:normal;font-weight:600;letter-spacing:-.065em;background:linear-gradient(110deg,var(--accent) 15%,var(--ice) 90%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-title-wrap{padding-block:48px 35px}
h1{font-weight:500;letter-spacing:-.065em;line-height:1.04}
.kinetic-art{--cube-size:152px;--cube-depth:76px;position:absolute;width:330px;height:300px;right:-5px;top:30px;perspective:800px;pointer-events:none}
.kinetic-grid{position:absolute;inset:-20px;background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:32px 32px;mask-image:radial-gradient(ellipse,#000 20%,transparent 70%);transform:rotate(-10deg)}
.cube-float{position:absolute;inset:72px 89px;transform-style:preserve-3d;animation:cube-float 6s ease-in-out infinite}
.glass-cube{width:var(--cube-size);height:var(--cube-size);transform-style:preserve-3d;transform:rotateX(-23deg) rotateY(34deg) rotateZ(-8deg);animation:cube-turn 24s linear infinite}
.cube-face{position:absolute;inset:0;border:1px solid #c6f685b0;border-radius:8px;background:linear-gradient(135deg,#c6f68538,#8de3e608 60%,#8de3e630);box-shadow:inset 0 0 35px #c6f6850b;backface-visibility:visible}
.cube-face::after{content:"";position:absolute;inset:12px;border:1px solid #c6f68528;border-radius:3px}
.face-front{transform:translateZ(var(--cube-depth))}.face-back{transform:rotateY(180deg) translateZ(var(--cube-depth))}.face-right{transform:rotateY(90deg) translateZ(var(--cube-depth))}.face-left{transform:rotateY(-90deg) translateZ(var(--cube-depth))}.face-top{transform:rotateX(90deg) translateZ(var(--cube-depth));background:linear-gradient(135deg,#c6f68565,#8de3e620)}.face-bottom{transform:rotateX(-90deg) translateZ(var(--cube-depth))}
.floating-tile{position:absolute;width:35px;height:35px;border-radius:7px;border:1px solid #c6f685a0;background:linear-gradient(135deg,#c6f68590,#8de3e620);box-shadow:0 0 30px #c6f68512;transform:rotate(-17deg);animation:tile-drift 7s ease-in-out infinite}
.tile-one{right:25px;top:28px}.tile-two{left:15px;bottom:45px;width:21px;height:21px;animation-delay:-3.5s}
.art-coordinate{display:none}
html[data-theme="light"] .cube-face{border-color:#647f5099;background:linear-gradient(135deg,#75ae4b35,#27878c15);box-shadow:inset 0 0 35px #749d4510}
html[data-theme="light"] .cube-face::after{border-color:#647f5035}
html[data-theme="light"] .floating-tile{border-color:#6d9248;background:linear-gradient(135deg,#aad87d90,#388b8c30)}
.hero-foot-controls{display:flex;align-items:center;gap:26px}
.hero-foot-controls>span{display:flex;gap:14px}
.motion-toggle{border:0;background:none;color:var(--muted);font-size:12px;padding:0;border-bottom:1px solid var(--line);line-height:1.6}
.motion-toggle:hover{color:var(--text)}.motion-toggle:disabled{cursor:default;opacity:.6}
.site-header nav a{position:relative}.site-header nav a::after{content:"";position:absolute;height:1px;left:0;right:0;bottom:-5px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .25s}.site-header nav a:hover::after{transform:scaleX(1)}
.button .button-icon{transition:transform .3s,background .3s}.button:hover .button-icon{transform:rotate(90deg);background:#171c150c}
.project-visual{transition:transform .4s cubic-bezier(.2,.8,.2,1),box-shadow .4s}
.project-visual:hover{transform:translateY(-6px);box-shadow:0 18px 45px #0003}
.browser-mock,.music-card,.sculpture{transition:translate .7s cubic-bezier(.2,.8,.2,1)}
.project-visual:hover .browser-mock,.project-visual:hover .music-card,.project-visual:hover .sculpture{translate:0 -8px}
.project-tag{transition:translate .3s}.project-visual:hover .project-tag{translate:3px 0}
.mini-blocks{display:flex;align-items:center;gap:3px;width:23px;flex:none}
.mini-blocks i{display:block;width:9px;height:9px;border:1px solid var(--accent);border-radius:2px;transform:rotate(-12deg)}.mini-blocks i:last-child{background:var(--accent);translate:0 5px}
.about-art{background:radial-gradient(ellipse at 70% 25%,#b1df7510,transparent 70%),var(--panel)}
.stacked-glass{width:175px;height:175px;position:relative;transform:rotate(-25deg) skew(9deg,9deg)}
.stacked-glass i{position:absolute;inset:0;border:1px solid #c6f68590;border-radius:24px;background:linear-gradient(135deg,#c6f68540,#8de3e612);box-shadow:14px 25px 45px #0002;animation:layer-float 7s ease-in-out infinite}
.stacked-glass i:nth-child(1){translate:24px -38px;animation-delay:-.6s}.stacked-glass i:nth-child(2){translate:0 0;animation-delay:-.3s}.stacked-glass i:nth-child(3){translate:-24px 38px}
html[data-theme="light"] .stacked-glass i{border-color:#6c8c4790;background:linear-gradient(135deg,#a5d56e60,#54a2a12b)}
.next-blocks{display:grid;grid-template-columns:repeat(2,23px);gap:6px;width:max-content;margin:0 auto 25px;transform:rotate(-12deg)}
.next-blocks i{width:23px;height:23px;border:1px solid var(--accent);border-radius:5px;background:#c6f68516}.next-blocks i:nth-child(2){background:var(--accent);animation:next-tile 4s ease-in-out infinite}.next-blocks i:nth-child(3){border-color:var(--muted)}
.next-inner strong{margin-top:0}
dialog[open]{animation:dialog-enter .25s ease-out}
@keyframes cube-turn{from{transform:rotateX(-23deg) rotateY(34deg) rotateZ(-8deg)}to{transform:rotateX(-23deg) rotateY(394deg) rotateZ(-8deg)}}
@keyframes cube-float{0%,100%{translate:0 0}50%{translate:0 -14px}}
@keyframes tile-drift{0%,100%{translate:0 0;rotate:0deg}50%{translate:-8px -12px;rotate:12deg}}
@keyframes layer-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@keyframes next-tile{0%,100%{transform:translate(0,0)}50%{transform:translate(4px,-4px)}}
@keyframes dialog-enter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes hero-enter{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:no-preference){
  .hero-intro{animation:hero-enter .7s both}.hero h1{animation:hero-enter .8s .08s both}.hero-bottom{animation:hero-enter .8s .18s both}
  .reveal{transition:opacity .7s ease var(--reveal-delay,0ms),translate .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay,0ms)}
  html[data-reveal-ready="true"] .reveal:not(.is-visible){opacity:0;translate:0 24px}
}
html[data-motion="paused"] *,html[data-motion="paused"] *::before,html[data-motion="paused"] *::after{animation-play-state:paused!important}
html[data-motion="paused"]{scroll-behavior:auto}html[data-motion="paused"] .reveal{transition:none;opacity:1;translate:none}
html[data-motion="paused"] .hero-intro,html[data-motion="paused"] .hero h1,html[data-motion="paused"] .hero-bottom{animation:none;opacity:1;translate:none}
html[data-motion="paused"] dialog[open]{animation:none;opacity:1;transform:none}
@media(min-width:1500px){.kinetic-art{right:15px;top:35px}}
@media(max-width:1050px){.kinetic-art{--cube-size:122px;--cube-depth:61px;width:250px;height:245px;right:-15px;top:25px}.cube-float{inset:60px 64px}.tile-one{right:18px;top:18px}.art-coordinate{font-size:9px}}
@media(max-width:700px){
  .hero-title-wrap{padding-block:35px 26px}
  .kinetic-art{--cube-size:62px;--cube-depth:31px;width:120px;height:145px;right:-8px;top:158px}
  .cube-float{inset:38px 29px}.cube-face{border-radius:4px}.cube-face::after{inset:6px}.floating-tile{width:15px;height:15px;border-radius:3px}.tile-one{right:7px;top:6px}.tile-two{width:10px;height:10px;left:6px;bottom:23px}.art-coordinate{display:none}
  .hero-bottom p{max-width:calc(100% - 108px)}
  .hero-foot{gap:20px;align-items:end}.hero-foot>span:first-child{max-width:150px}.hero-foot-controls{flex-direction:column;align-items:end;gap:8px}.motion-toggle{font-size:12px}.hero-foot-controls>span{font-size:10px}
  .stacked-glass{width:140px;height:140px}.stacked-glass i{border-radius:18px}.about-sticker{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;translate:none}.glass-cube{transform:rotateX(-23deg) rotateY(34deg) rotateZ(-8deg)}*,*::before,*::after{animation:none!important;transition:none!important}}
