:root { color-scheme:light; font-family:"Noto Sans KR","Malgun Gothic",system-ui,sans-serif; color:#141413; background:#efeeea; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; min-height:100svh; padding:clamp(16px,4vw,56px); display:grid; place-items:center; }
button,input { font:inherit; }
button { cursor:pointer; }
[hidden] { display:none !important; }
.landing { width:100%; max-width:1320px; min-height:min(780px,calc(100vh - 112px)); display:flex; background:white; border-radius:22px; overflow:hidden; box-shadow:0 1px 2px #1414130f,0 24px 60px #1414131a; }
.signin { flex:1 1 420px; min-width:0; display:flex; flex-direction:column; justify-content:space-between; gap:40px; padding:clamp(28px,4vw,56px); }
.brand { display:flex; align-items:center; gap:10px; font-size:15px; font-weight:700; letter-spacing:-.2px; }
.brand span { display:grid; place-items:center; background:#141413; color:white; width:30px; height:30px; border-radius:8px; font-size:14px; }
form { display:grid; align-self:center; width:100%; max-width:380px; gap:14px; }
.intro { margin-bottom:18px; text-align:center; }
p,h1,figure { margin:0; }
.intro p { font-size:14px; color:#5e5d59; }
.security-note { margin-top:10px; line-height:1.55; }
.back-to-portal { color:#5e5d59; font-size:13px; text-underline-offset:3px; align-self:flex-start; }
h1 { margin-top:6px; font-size:30px; letter-spacing:-.8px; font-weight:800; }
label { font-size:13px; color:#3b3a36; font-weight:500; }
.field { position:relative; margin-top:-8px; }
.field svg { position:absolute; left:14px; top:15px; width:18px; height:18px; fill:none; stroke:#6b6a65; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.field input { width:100%; height:48px; padding:0 14px 0 42px; border:1px solid #dddcd6; border-radius:10px; background:#f8f8f6; font-size:15px; color:#141413; }
.field input:focus { outline:1px solid #141413; border-color:#141413; background:white; }
.remember { display:flex; align-items:center; gap:8px; min-height:32px; cursor:pointer; color:#5e5d59; }
.remember input { width:16px; height:16px; margin:0; accent-color:#141413; }
.submit { height:50px; background:#141413; color:white; border:0; border-radius:10px; font-weight:700; font-size:15px; }
.submit:hover { background:#2e2d2a; }
.help,.error { color:#5e5d59; font-size:13px; line-height:1.6; text-align:center; margin-top:6px; }
.error { margin:0; color:#982d20; }
.companies { color:#6b6a65; font-size:12px; line-height:1.7; }
.gallery {
  flex:1.25 1 480px; min-width:0; min-height:420px; display:grid;
  grid-template-rows:minmax(0,1fr) auto; gap:12px;
  padding:clamp(24px,4vw,58px) clamp(22px,3.6vw,50px) 20px;
  background:radial-gradient(ellipse at 50% 24%,#42392e,#231e19 75%,#191613);
  perspective:1100px; color:white;
}
.gallery.single-artwork { grid-template-rows:minmax(0,1fr); padding-bottom:clamp(24px,4vw,58px); }
.exhibit {
  position:relative; min-height:0; min-width:0; isolation:isolate;
}
.exhibit::before {
  content:""; position:absolute; z-index:-1; inset:0 3px;
  border-radius:5px; box-shadow:0 18px 32px #100b08b3;
  pointer-events:none;
}
.frame {
  position:relative; display:grid; height:100%; min-height:0;
  padding:clamp(16px,2.8vw,37px);
  border:clamp(8px,1.15vw,16px) solid transparent; border-radius:3px;
  background:linear-gradient(145deg,#fbf9f2,#eee7d8) padding-box,
             linear-gradient(133deg,#866446 0%,#36251c 32%,#61452f 56%,#292018 100%) border-box;
  box-shadow:0 3px 0 #221711,0 0 0 1px #33251d,
             inset 0 0 0 1px #c7a77c,inset 0 3px 7px #2e211e68;
}
.frame::before {
  content:""; position:absolute; inset:-5px;
  border:1px solid #d6ac6d75; box-shadow:0 0 0 1px #201711aa,inset 0 0 0 2px #452e2080;
  pointer-events:none;
}
.aperture {
  position:relative; min-height:0; overflow:hidden; isolation:isolate;
  background:#fffdf7; box-shadow:0 0 0 1px #c4b69e,0 1px 3px #382f2759;
}
.aperture::after {
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none;
  box-shadow:inset 0 2px 6px #27170e63;
}
.painting { position:absolute; inset:0; visibility:hidden; pointer-events:none; }
.painting.active { visibility:visible; }
.painting img { width:100%; height:100%; object-fit:cover; display:block; }
.painting[data-art="4c098a6ae483080774f923cfe6575b33"] img { object-position:35% 50%; }
.painting[data-art="a7a45ac845ca8ad588911a10c9cb0589"] img { object-position:30% 50%; }
.painting[data-art="8475a807d0e8fb9390a5e39f25852cf8"] img { object-position:55% 50%; }
.painting[data-art="923443d35b0d8a44b17df36dec0d184f"] img { object-position:50% 30%; }
.painting[data-art="fd0c8b399b65b52a8482d13904a73554"] img { object-position:45% 50%; }
.painting.show-composition img { object-fit:contain; }
@keyframes zoom { to { transform:scale(1.08); } }
.painting::after { content:""; position:absolute; inset:auto 0 0; height:40%; background:linear-gradient(to top,rgba(10,10,9,.77),transparent); }
figcaption { position:absolute; z-index:1; bottom:17px; left:17px; right:17px; display:grid; gap:4px; word-break:keep-all; }
figcaption strong { font-family:inherit; font-size:18px; font-weight:700; }
figcaption span { font-size:13px; color:rgba(255,255,255,.88); }
.paint-cover { position:absolute; z-index:2; inset:0; width:100%; height:100%; pointer-events:none; }
.controls { min-width:0; display:flex; align-items:center; justify-content:center; }
.controls button { display:grid; place-items:center; width:34px; height:44px; padding:0; color:white; border:0; border-radius:5px; background:transparent; font-size:24px; }
#art-position { min-width:64px; text-align:center; font-size:13px; font-variant-numeric:tabular-nums; }
#playback { font-size:14px; }
button:focus-visible,input[type=checkbox]:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
@media(max-width:760px) {
  body { padding:16px; }
  .landing { flex-direction:column; }
  .signin { gap:28px; flex:auto; padding:28px; }
  .gallery { flex:auto; height:clamp(265px,55vw,385px); min-height:0; gap:7px; padding:24px 18px 9px; }
  .frame { padding:14px; }
  .gallery.single-artwork { padding-bottom:24px; }
  figcaption { bottom:10px; left:10px; right:10px; }
  figcaption strong { font-size:15px; }
}
.gallery:not(.single-artwork) .exhibit {
  transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transition:transform 220ms ease-out;
}
.gallery:not(.single-artwork) .exhibit::before {
  translate:var(--shadow-x,0px) var(--shadow-y,0px);
  transition:translate 280ms ease-out;
}
.gallery:not(.single-artwork) .painting img {
  translate:var(--art-x,0px) var(--art-y,0px);
  transition:translate 180ms ease-out,scale 180ms ease-out;
}
.gallery:not(.single-artwork) .depth-active .painting.active:not(.show-composition) img { scale:1.035; }
.gallery .exhibit.is-painting,.gallery .exhibit.is-painting::before,.gallery .exhibit.is-painting .painting img {
  transition:none;
}
@media (min-width:761px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .gallery:not(.single-artwork) .painting.active:not(.show-composition) img {
    scale:1.025;
    animation:zoom 14s linear both;
  }
  .exhibit.is-painting .painting.active:not(.show-composition) img {
    animation-play-state:paused;
  }
}
@media (prefers-reduced-motion:reduce) {
  .gallery:not(.single-artwork) .exhibit,.gallery:not(.single-artwork) .exhibit::before,
  .gallery:not(.single-artwork) .painting img { transition:none; }
}
